Documentation ¶
Index ¶
- type Client
- func (s *Client) ContainerExec(containerID string, cmd []string) (io.Reader, error)
- func (s *Client) CopyFromContainer(containerID, srcpath string) (io.ReadCloser, error)
- func (s *Client) CopyToContainer(containerID, dstpath string, data io.Reader) error
- func (s *Client) CreateContainer(imageID string, cmd []string, config *CreateContainerConfig) (string, error)
- func (s *Client) HasImage(imageID string) (bool, error)
- func (s *Client) InspectContainer(containerID string) (types.ContainerJSON, error)
- func (s *Client) ListImages() ([]*ImageSummary, error)
- func (s *Client) LoadImage(input io.Reader) error
- func (s *Client) LoadImageByFilepath(filepath string) error
- func (s *Client) PullImage(imageID string) error
- func (s *Client) PushImage(imageID string) error
- func (s *Client) ReadImage(imageID string) (io.Reader, error)
- func (s *Client) RemoveAllImages() error
- func (s *Client) RemoveImage(imageID string) error
- func (s *Client) StartContainer(containerID string) error
- func (s *Client) StopContainer(containerID string) error
- func (s *Client) TagImage(imageID, tag string) error
- type CreateContainerConfig
- type ImageSummary
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) ContainerExec ¶
ContainerExec ...
func (*Client) CopyFromContainer ¶
func (s *Client) CopyFromContainer(containerID, srcpath string) (io.ReadCloser, error)
CopyFromContainer ...
func (*Client) CopyToContainer ¶
CopyToContainer ...
func (*Client) CreateContainer ¶
func (s *Client) CreateContainer(imageID string, cmd []string, config *CreateContainerConfig) (string, error)
CreateContainer ...
func (*Client) InspectContainer ¶
func (s *Client) InspectContainer(containerID string) (types.ContainerJSON, error)
InspectContainer ...
func (*Client) LoadImageByFilepath ¶
LoadImageByFilepath ...
func (*Client) StartContainer ¶
StartContainer ...
func (*Client) StopContainer ¶
StopContainer ...
type CreateContainerConfig ¶
type CreateContainerConfig struct { // container:host Volumes map[string]string Ports map[string]string }
CreateContainerConfig ...
type ImageSummary ¶
ImageSummary ....
type Interface ¶
type Interface interface { ListImages() ([]*ImageSummary, error) HasImage(imageID string) (bool, error) TagImage(imageID, tag string) error PullImage(imageID string) error PushImage(imageID string) error RemoveImage(imageID string) error RemoveAllImages() error CreateContainer(imageID string, cmd []string, config *CreateContainerConfig) (string, error) StartContainer(containerID string) error StopContainer(containerID string) error InspectContainer(containerID string) (types.ContainerJSON, error) ContainerExec(containerID string, cmd []string) (io.Reader, error) ReadImage(imageID string) (io.Reader, error) LoadImage(input io.Reader) error LoadImageByFilepath(filepath string) error CopyToContainer(containerID, dirpath string, data io.Reader) error CopyFromContainer(containerID, srcpath string) (io.ReadCloser, error) }
Interface ...
Click to show internal directories.
Click to hide internal directories.