docker

package
v0.0.0-...-aa5f7aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (auth.Client, error)

NewClient

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides authentication operations for docker registries.

func (*Client) Credential

func (c *Client) Credential(hostname string) (string, string, error)

Credential returns the login credential of the request host.

func (*Client) GetAllCredentials

func (c *Client) GetAllCredentials() (map[string]ctypes.AuthConfig, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, hostname, username, secret string, insecure bool) error

Login logs in to a docker registry identified by the hostname.

func (*Client) Resolver

func (c *Client) Resolver(_ context.Context, client *http.Client, plainHTTP bool) (remotes.Resolver, error)

Resolver returns a new authenticated resolver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL