Documentation
¶
Overview ¶
Package usersecretsdrain provides the backend implementation for the usersecretsdrain facade.
Index ¶
- func Register(registry facade.FacadeRegistry)
- type SecretBackendService
- type SecretService
- type SecretsDrainAPI
- func (s *SecretsDrainAPI) GetSecretBackendConfigs(ctx context.Context, arg params.SecretBackendArgs) (params.SecretBackendConfigResults, error)
- func (s *SecretsDrainAPI) GetSecretContentInfo(ctx context.Context, args params.GetSecretContentArgs) (params.SecretContentResults, error)
- func (s *SecretsDrainAPI) GetSecretRevisionContentInfo(ctx context.Context, arg params.SecretRevisionArg) (params.SecretContentResults, error)
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 SecretBackendService ¶
type SecretBackendService interface { DrainBackendConfigInfo( ctx context.Context, p secretbackendservice.DrainBackendConfigParams, ) (*provider.ModelBackendConfigInfo, error) BackendConfigInfo( ctx context.Context, p secretbackendservice.BackendConfigParams, ) (*provider.ModelBackendConfigInfo, error) }
SecretBackendService provides access to the secret backend service,
type SecretService ¶
type SecretService interface { GetSecret(ctx context.Context, uri *secrets.URI) (*secrets.SecretMetadata, error) GetSecretValue(context.Context, *secrets.URI, int, secretservice.SecretAccessor) (secrets.SecretValue, *secrets.ValueRef, error) ListGrantedSecretsForBackend( ctx context.Context, backendID string, role secrets.SecretRole, consumers ...secretservice.SecretAccessor, ) ([]*secrets.SecretRevisionRef, error) }
SecretService provides access to the secret service.
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(ctx context.Context, 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(ctx context.Context, args params.GetSecretContentArgs) (params.SecretContentResults, error)
GetSecretContentInfo returns the secret values for the specified secrets.
func (*SecretsDrainAPI) GetSecretRevisionContentInfo ¶
func (s *SecretsDrainAPI) GetSecretRevisionContentInfo(ctx context.Context, arg params.SecretRevisionArg) (params.SecretContentResults, error)
GetSecretRevisionContentInfo returns the secret values for the specified secret revisions.
Click to show internal directories.
Click to hide internal directories.