Documentation
¶
Index ¶
- Variables
- type MaintenanceStore
- 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
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConflict = errors.New("secret version conflict") )
Functions ¶
This section is empty.
Types ¶
type MaintenanceStore ¶
type MaintenanceStore interface {
ListPendingSecretMutations(context.Context, int) ([]domain.SecretMutation, error)
CompleteSecretMutation(context.Context, domain.SecretMutation, int64) (domain.Parameter, error)
AbandonSecretMutation(context.Context, domain.SecretMutation) error
ListParameterPurgeCandidates(context.Context, int) ([]domain.ParameterPurgeCandidate, error)
MarkParameterPurged(context.Context, int64) error
}
MaintenanceStore is the persistence contract consumed by secret maintenance.
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 ¶
type Worker ¶
type Worker struct {
Store MaintenanceStore
Secrets SecretValueStore
MutationTimeout time.Duration
Logger *slog.Logger
}
Worker reconciles incomplete secret mutations and retention purges.
Click to show internal directories.
Click to hide internal directories.