Documentation
¶
Index ¶
- Variables
- type OpenBaoConfig
- type OpenBaoKV2
- func (c *OpenBaoKV2) CurrentVersion(ctx context.Context, reference string) (int64, error)
- func (c *OpenBaoKV2) Delete(ctx context.Context, reference string) error
- func (c *OpenBaoKV2) Get(ctx context.Context, reference string, version int64) (string, error)
- func (c *OpenBaoKV2) Put(ctx context.Context, reference, value string, expectedVersion int64) (int64, error)
- type SecretValueStore
- type UnavailableStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConflict = errors.New("secret version conflict") )
Functions ¶
This section is empty.
Types ¶
type OpenBaoConfig ¶
type OpenBaoKV2 ¶
type OpenBaoKV2 struct {
// contains filtered or unexported fields
}
func NewOpenBaoKV2 ¶
func NewOpenBaoKV2(config OpenBaoConfig) (*OpenBaoKV2, error)
func (*OpenBaoKV2) CurrentVersion ¶
func (*OpenBaoKV2) Delete ¶
func (c *OpenBaoKV2) Delete(ctx context.Context, reference string) error
type SecretValueStore ¶
type SecretValueStore interface {
Put(context.Context, string, string, int64) (int64, error)
Get(context.Context, string, int64) (string, error)
CurrentVersion(context.Context, string) (int64, error)
Delete(context.Context, string) error
}
SecretValueStore is declared by the parameter domain that consumes it. Its references and versions are internal implementation details, never API IDs.
type UnavailableStore ¶
type UnavailableStore struct{}
func (UnavailableStore) CurrentVersion ¶
Click to show internal directories.
Click to hide internal directories.