Documentation ¶
Index ¶
- func BuildAuthMethod(config *config.Method, logger hclog.Logger) (auth.AuthMethod, error)
- func BuildSinks(sc []*config.Sink, logger hclog.Logger, client *api.Client) ([]*sink.SinkConfig, error)
- func NewClient(methodConfig *config.Method, vaultConfig *config.Vault) (*api.Client, error)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthMethod ¶ added in v0.3.45
func BuildAuthMethod(config *config.Method, logger hclog.Logger) (auth.AuthMethod, error)
BuildAuthMethod creates a new authentication method from config.
func BuildSinks ¶ added in v0.3.45
func BuildSinks(sc []*config.Sink, logger hclog.Logger, client *api.Client) ([]*sink.SinkConfig, error)
BuildSinks creates a set of sinks from the sink configurations.
Types ¶
type Credentials ¶
Credentials represent Docker credentials.
func GetCredentials ¶
func GetCredentials(path string, client *api.Client) (Credentials, error)
GetCredentials uses the Vault client to read the secret at path.
Click to show internal directories.
Click to hide internal directories.