Documentation ¶
Index ¶
- func NewClient(configPaths ...string) (auth.Client, error)
- type Client
- func (c *Client) Credential(hostname string) (string, string, error)
- func (c *Client) Login(ctx context.Context, hostname, username, secret string, insecure bool) error
- func (c *Client) LoginWithOpts(options ...iface.LoginOption) error
- func (c *Client) Logout(_ context.Context, hostname string) error
- func (c *Client) Resolver(_ context.Context, client *http.Client, plainHTTP bool) (remotes.Resolver, error)
- func (c *Client) ResolverWithOpts(options ...iface.ResolverOption) (remotes.Resolver, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides authentication operations for docker registries.
func (*Client) Credential ¶
Credential returns the login credential of the request host.
func (*Client) Login ¶
Login logs in to a docker registry identified by the hostname. Deprecated: use LoginWithOpts
func (*Client) LoginWithOpts ¶
func (c *Client) LoginWithOpts(options ...iface.LoginOption) error
LoginWithOpts logs in to a docker registry identified by the hostname with custom options.
func (*Client) Resolver ¶
func (c *Client) Resolver(_ context.Context, client *http.Client, plainHTTP bool) (remotes.Resolver, error)
Resolver returns a new authenticated resolver. Deprecated: use ResolverWithOpts
func (*Client) ResolverWithOpts ¶
ResolverWithOpts returns a new authenticated resolver with custom options.
Click to show internal directories.
Click to hide internal directories.