docker

package
v0.0.0-...-3d30972 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authentication

func Authentication(user, password string) func(*Client) error

Authentication sets credentials to be used by the client

Types

type Client

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

Client for handling requests to the Docker API

func NewClient

func NewClient(options ...func(*Client) error) (*Client, error)

NewClient builds the client used to access the Docker API

func (*Client) Image

func (c *Client) Image(image string) (types.ImageSummary, error)

Image returns metadata about an image on the docker host

func (*Client) Pull

func (c *Client) Pull(image string) error

Pull a docker image to the host

func (*Client) Save

func (c *Client) Save(output, imageID string) error

Save an image by ID as tar to output directory

Jump to

Keyboard shortcuts

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