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