Documentation
¶
Index ¶
- func RetrieveLocalDockerRegistryAuth(image string) (string, error)
- func WaitDaemonReady(ctx context.Context, cli *client.Client) error
- type Client
- func (cli *Client) CreateContainerWithImagePull(ctx context.Context, name string, config *container.Config, ...) (container.CreateResponse, error)
- func (cli *Client) PullImage(ctx context.Context, image string, opts image.PullOptions) (<-chan PullPushImageMessage, error)
- func (cli *Client) PushImage(ctx context.Context, image string, opts image.PushOptions) (<-chan PullPushImageMessage, error)
- func (cli *Client) WaitPortPublished(ctx context.Context, containerID string, port nat.Port) ([]nat.PortBinding, error)
- type PullPushImageMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveLocalDockerRegistryAuth ¶ added in v0.13.0
RetrieveLocalDockerRegistryAuth retrieves the authentication token for the specified image from the local Docker config file. It returns the encoded authentication token if it contains any credentials, or an empty string if no credentials are found.
Types ¶
type Client ¶ added in v0.13.0
func (*Client) CreateContainerWithImagePull ¶ added in v0.13.0
func (cli *Client) CreateContainerWithImagePull( ctx context.Context, name string, config *container.Config, hostConfig *container.HostConfig, ) (container.CreateResponse, error)
CreateContainerWithImagePull creates a container. If the image is missing, it pulls the image first.
func (*Client) PullImage ¶ added in v0.13.0
func (cli *Client) PullImage( ctx context.Context, image string, opts image.PullOptions, ) (<-chan PullPushImageMessage, error)
PullImage pulls an image and returns a channel to receive progress messages.
func (*Client) PushImage ¶ added in v0.13.0
func (cli *Client) PushImage( ctx context.Context, image string, opts image.PushOptions, ) (<-chan PullPushImageMessage, error)
PushImage pushes an image and returns a channel to receive progress messages.
type PullPushImageMessage ¶ added in v0.13.0
type PullPushImageMessage struct {
Message jsonmessage.JSONMessage
Err error
}
Click to show internal directories.
Click to hide internal directories.