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>
24 lines
742 B
Go
24 lines
742 B
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package bucket
|
|
|
|
import (
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/storagebuckets"
|
|
plgpb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin"
|
|
)
|
|
|
|
// StorageBucketSingleton ensures safe and easy access to a storage bucket and
|
|
// its storage bucket credential state.
|
|
type StorageBucketSingleton interface {
|
|
GetState() *plgpb.StorageBucketCredentialState
|
|
GetBucket() *storagebuckets.StorageBucket
|
|
SetState(*plgpb.StorageBucketCredentialState) error
|
|
SetBucket(*storagebuckets.StorageBucket) error
|
|
HasWriteAccess() bool
|
|
HasReadAccess() bool
|
|
AddDependant(name string)
|
|
RemoveDependant(name string)
|
|
HasDependants() bool
|
|
}
|