Documentation ¶
Index ¶
- func ShortImageID(imageID string) string
- func StripImageTagHost(imageTag string) string
- type Client
- func (c *Client) Debugf(str string, args ...interface{})
- func (c *Client) HasImage(imageID string) (bool, error)
- func (c *Client) ListImages() ([]*ImageSummary, error)
- func (c *Client) LoadImage(input io.Reader) error
- func (c *Client) LoadImageByFilePath(filepath string) error
- func (c *Client) PullImage(imageID string) error
- func (c *Client) PushImage(imageID string) error
- func (c *Client) ReadImage(imageID string) (io.Reader, error)
- func (c *Client) RemoveAllImages() error
- func (c *Client) RemoveImage(imageID string) error
- func (c *Client) SaveImageTar(imageID string, dest string) error
- func (c *Client) TagImage(imageID, tag string) error
- type Config
- type ImageSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShortImageID ¶
ShortImageID returns the short version of an image ID
func StripImageTagHost ¶
StripImageTagHost strips the host from an image tag
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is client structure
func (*Client) ListImages ¶
func (c *Client) ListImages() ([]*ImageSummary, error)
ListImages return list of docker images
func (*Client) LoadImageByFilePath ¶
LoadImageByFilePath loads an image from a tarball
func (*Client) RemoveAllImages ¶
RemoveAllImages removes all images from the local registry
func (*Client) RemoveImage ¶
RemoveImage remove an image from the local registry
func (*Client) SaveImageTar ¶
SaveImageTar saves an image into a tarball
type ImageSummary ¶
ImageSummary is structure for image summary
Click to show internal directories.
Click to hide internal directories.