Documentation ¶
Overview ¶
Package awssecretsmanager hosts the AWSSecretsManager type.
Index ¶
- type AWSSecretsManager
- func (a *AWSSecretsManager) CreateToken(ctx context.Context, id string, displayName string, numUses int, ...) (token string, err error)
- func (a *AWSSecretsManager) DeleteSecret(ctx context.Context, path string) error
- func (a *AWSSecretsManager) GetAutoCertCache(ctx context.Context) secretprovidertype.AutoCertCache
- func (a *AWSSecretsManager) ListSecrets(ctx context.Context, pathChannel chan string, errorChannel chan error)
- func (a *AWSSecretsManager) ReadAllSecrets(ctx context.Context, secretChannel chan *secretprovidertype.Secret, ...)
- func (a *AWSSecretsManager) ReadSecret(ctx context.Context, path string) (secret *secretprovidertype.Secret, err error)
- func (a *AWSSecretsManager) UpsertSecret(ctx context.Context, path string, data map[string]interface{}) error
- type AutoCertCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSecretsManager ¶
type AWSSecretsManager struct { ID string // contains filtered or unexported fields }
AWSSecretsManager provides methods for interacting with AWS Secrets Manager.
func New ¶
func New(ctx context.Context, secretStore *secretprovidertype.SecretProvider) (*AWSSecretsManager, error)
New creates a matching secret store implementation.
func (*AWSSecretsManager) CreateToken ¶
func (a *AWSSecretsManager) CreateToken(ctx context.Context, id string, displayName string, numUses int, policies []string) (token string, err error)
CreateToken creates a token.
func (*AWSSecretsManager) DeleteSecret ¶
func (a *AWSSecretsManager) DeleteSecret(ctx context.Context, path string) error
DeleteSecret deletes a secret.
func (*AWSSecretsManager) GetAutoCertCache ¶
func (a *AWSSecretsManager) GetAutoCertCache(ctx context.Context) secretprovidertype.AutoCertCache
GetAutoCertCache returns an autocert-compatible cache.
func (*AWSSecretsManager) ListSecrets ¶
func (a *AWSSecretsManager) ListSecrets(ctx context.Context, pathChannel chan string, errorChannel chan error)
ListSecrets lists secret paths.
func (*AWSSecretsManager) ReadAllSecrets ¶
func (a *AWSSecretsManager) ReadAllSecrets(ctx context.Context, secretChannel chan *secretprovidertype.Secret, errorChannel chan error)
ReadAllSecrets reads all secrets.
func (*AWSSecretsManager) ReadSecret ¶
func (a *AWSSecretsManager) ReadSecret(ctx context.Context, path string) (secret *secretprovidertype.Secret, err error)
ReadSecret returns a secret.
func (*AWSSecretsManager) UpsertSecret ¶
func (a *AWSSecretsManager) UpsertSecret(ctx context.Context, path string, data map[string]interface{}) error
UpsertSecret creates or updates a secret.
type AutoCertCache ¶
type AutoCertCache struct { ID string // contains filtered or unexported fields }
AutoCertCache implements AutoCertCache using Vault.
func (AutoCertCache) Delete ¶
func (a AutoCertCache) Delete(ctx context.Context, name string) error
Delete removes the specified file name.
Click to show internal directories.
Click to hide internal directories.