Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package kms
|
|
|
|
import (
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/kms/store"
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
// DataKeyVersionDestructionJobProgress is used to read
|
|
// data key version destruction job progress from the DB.
|
|
type DataKeyVersionDestructionJobProgress struct {
|
|
*store.DataKeyVersionDestructionJobProgress
|
|
}
|
|
|
|
func (k *DataKeyVersionDestructionJobProgress) TableName() string {
|
|
return "kms_data_key_version_destruction_job_progress"
|
|
}
|
|
|
|
// allocDataKeyVersionDestructionJobProgress makes an empty one in memory.
|
|
func allocDataKeyVersionDestructionJobProgress() DataKeyVersionDestructionJobProgress {
|
|
return DataKeyVersionDestructionJobProgress{
|
|
DataKeyVersionDestructionJobProgress: &store.DataKeyVersionDestructionJobProgress{},
|
|
}
|
|
}
|
|
|
|
// Clone an DataKeyVersionDestructionJob
|
|
func (k *DataKeyVersionDestructionJobProgress) Clone() *DataKeyVersionDestructionJobProgress {
|
|
cp := proto.Clone(k.DataKeyVersionDestructionJobProgress)
|
|
return &DataKeyVersionDestructionJobProgress{
|
|
DataKeyVersionDestructionJobProgress: cp.(*store.DataKeyVersionDestructionJobProgress),
|
|
}
|
|
}
|