Documentation ¶
Overview ¶
Package usersecretsdrain provides the backend implementation for the usersecretsdrain facade.
Index ¶
- func Register(registry facade.FacadeRegistry)
- type SecretsDrainAPI
- func (s *SecretsDrainAPI) GetSecretBackendConfigs(arg params.SecretBackendArgs) (params.SecretBackendConfigResults, error)
- func (s *SecretsDrainAPI) GetSecretContentInfo(args params.GetSecretContentArgs) (params.SecretContentResults, error)
- func (s *SecretsDrainAPI) GetSecretRevisionContentInfo(arg params.SecretRevisionArg) (params.SecretContentResults, error)
- type SecretsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type SecretsDrainAPI ¶
type SecretsDrainAPI struct { *commonsecrets.SecretsDrainAPI // contains filtered or unexported fields }
SecretsDrainAPI is the implementation for the SecretsDrain facade.
func (*SecretsDrainAPI) GetSecretBackendConfigs ¶
func (s *SecretsDrainAPI) GetSecretBackendConfigs(arg params.SecretBackendArgs) (params.SecretBackendConfigResults, error)
GetSecretBackendConfigs gets the config needed to create a client to secret backends for the drain worker.
func (*SecretsDrainAPI) GetSecretContentInfo ¶
func (s *SecretsDrainAPI) GetSecretContentInfo(args params.GetSecretContentArgs) (params.SecretContentResults, error)
GetSecretContentInfo returns the secret values for the specified secrets.
func (*SecretsDrainAPI) GetSecretRevisionContentInfo ¶
func (s *SecretsDrainAPI) GetSecretRevisionContentInfo(arg params.SecretRevisionArg) (params.SecretContentResults, error)
GetSecretRevisionContentInfo returns the secret values for the specified secret revisions.
type SecretsState ¶
type SecretsState interface { GetSecret(*coresecrets.URI) (*coresecrets.SecretMetadata, error) GetSecretValue(*coresecrets.URI, int) (coresecrets.SecretValue, *coresecrets.ValueRef, error) }
SecretsState is the interface for the state package.
Click to show internal directories.
Click to hide internal directories.