Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ParseID = secrets.ParseID MustParseID = secrets.MustParseID ParsePattern = secrets.ParsePattern MustParsePattern = secrets.MustParsePattern ErrSecretNotFound = secrets.ErrNotFound ErrAccessDenied = secrets.ErrAccessDenied )
Functions ¶
This section is empty.
Types ¶
type AccessControlModuleMetadata ¶ added in v0.0.30
type AccessControlModuleMetadata struct{}
type AuthorizeResponse ¶ added in v0.1.0
type AuthorizeResponse = secrets.AuthorizeResponse
type Client ¶ added in v0.0.17
type Client interface {
secrets.Resolver
secrets.Authorizer
// Version returns the name and version reported by the daemon.
Version(ctx context.Context) (DaemonVersion, error)
// HubAuth returns a Docker Hub authentication accessor backed by this client.
HubAuth(opts ...dockerhub.Option) dockerhub.ClientAuth
}
Client is the interface for interacting with the secrets engine daemon.
type ConnectError ¶ added in v0.2.0
type ConnectError struct {
Reason ConnectReason
SocketPath string
Err error
}
func (*ConnectError) Error ¶ added in v0.2.0
func (e *ConnectError) Error() string
func (*ConnectError) Hint ¶ added in v0.2.0
func (e *ConnectError) Hint() string
Hint returns a user friendly message to help recover from the error.
func (*ConnectError) Is ¶ added in v0.2.0
func (e *ConnectError) Is(target error) bool
func (*ConnectError) Unwrap ¶ added in v0.2.0
func (e *ConnectError) Unwrap() error
type ConnectReason ¶ added in v0.2.0
type ConnectReason int
const ( ReasonUnknown ConnectReason = iota ReasonNotRunning ReasonPermissionDenied ReasonTimeout )
func (ConnectReason) String ¶ added in v0.2.0
func (r ConnectReason) String() string
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. By default no timeout is applied, because a request may block on user interaction. 0 means no timeout; negative durations return 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)
type SecretsProviderMetadata ¶ added in v0.0.26
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dockerhub reads Docker Hub access tokens and account profiles from the secrets engine.
|
Package dockerhub reads Docker Hub access tokens and account profiles from the secrets engine. |
|
Package realms exposes the canonical set of Docker realm patterns that clients use to scope secret queries.
|
Package realms exposes the canonical set of Docker realm patterns that clients use to scope secret queries. |
Click to show internal directories.
Click to hide internal directories.