Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ParseID = secrets.ParseID MustParseID = secrets.MustParseID ParsePattern = secrets.ParsePattern MustParsePattern = secrets.MustParsePattern ErrSecretNotFound = secrets.ErrNotFound ErrSecretsEngineNotAvailable = errors.New("secrets engine is not available") )
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.0.17
type Client interface {
secrets.Resolver
// Version returns the name and version reported by the daemon.
Version(ctx context.Context) (DaemonVersion, error)
}
Client is the interface for interacting with the secrets engine daemon.
type DaemonVersion ¶ added in v0.0.25
type DaemonVersion = api.DaemonVersion
type Option ¶
type Option func(c *config) error
func WithDialContext ¶ added in v0.0.12
func WithResponseTimeout ¶ added in v0.0.19
WithResponseTimeout overrides the response header timeout of the client.
It is useful to set if there are long-lived user interactions required when the Secrets Engine requests secrets from a plugin.
A responseTimeout of 0 means no response header timeout will be applied. Negative durations are not allowed and will result in an error.
func WithSocketPath ¶
func WithTimeout ¶
WithTimeout overrides the request timeout of the client.
It is useful to set if there are hard-limits to when the client must wait for the server to accept the request.
A timeout of 0 means no request timeout will be applied. Negative durations are not allowed and will result in an error.
type PluginInfo ¶ added in v0.0.17
type PluginManagement ¶ added in v0.0.26
type PluginManagement interface {
ListPlugins(ctx context.Context) ([]PluginInfo, error)
EnablePlugin(ctx context.Context, name string) error
DisablePlugin(ctx context.Context, name string) error
}
func PluginManagementFromClient ¶ added in v0.0.26
func PluginManagementFromClient(c Client) (PluginManagement, error)