Documentation
¶
Overview ¶
Package vaultadapter adapts the vault extension's services to the authsome bridge.Vault interface.
Index ¶
- type Adapter
- func (a *Adapter) GetConfig(ctx context.Context, key string) (string, error)
- func (a *Adapter) GetSecret(ctx context.Context, key string) ([]byte, error)
- func (a *Adapter) IsFeatureEnabled(ctx context.Context, flag string) bool
- func (a *Adapter) SetSecret(ctx context.Context, key string, value []byte) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements bridge.Vault by delegating to the vault extension's secret, flag, and config services.
func New ¶
func New(secrets *vaultsecret.Service, flags *vaultflag.Service, config *vaultconfig.Service, opts ...Option) *Adapter
New creates a new vault adapter. All service parameters are optional; nil services return bridge.ErrVaultNotAvailable for their methods.
func (*Adapter) IsFeatureEnabled ¶
IsFeatureEnabled evaluates a boolean feature flag.
Click to show internal directories.
Click to hide internal directories.