Documentation
¶
Index ¶
- type Client
- func (c *Client) ContainerCopy(ctx context.Context, srcPath, containerName, destPath string) error
- func (c *Client) ContainerCopyContent(ctx context.Context, content []byte, containerName, destPath string, ...) error
- func (c *Client) ContainerCreate(ctx context.Context, opts *ContainerCreateOptions) (string, error)
- func (c *Client) ContainerExec(ctx context.Context, name string, cmd []string) (string, error)
- func (c *Client) ContainerExecInteractive(ctx context.Context, name string, cmd []string) error
- func (c *Client) ContainerExecQuiet(ctx context.Context, name string, cmd []string) error
- func (c *Client) ContainerExists(ctx context.Context, name string) (bool, error)
- func (c *Client) ContainerInspect(ctx context.Context, name, format string) (string, error)
- func (c *Client) ContainerList(ctx context.Context, filter string) ([]string, error)
- func (c *Client) ContainerRemove(ctx context.Context, name string, force bool) error
- func (c *Client) ContainerRunQuiet(ctx context.Context, image string, cmd []string, volumeMounts []string) error
- func (c *Client) ContainerStart(ctx context.Context, name string) error
- func (c *Client) ContainerStatus(ctx context.Context, name string) (string, error)
- func (c *Client) ContainerStop(ctx context.Context, name string) error
- func (c *Client) ContainerWait(ctx context.Context, name string) (int64, error)
- func (c *Client) EnsureImage(ctx context.Context, image string) error
- func (c *Client) GetPublishedPort(ctx context.Context, containerName, containerPort string) (int, error)
- func (c *Client) ImageExists(ctx context.Context, name string) (bool, error)
- func (c *Client) ImageInspectLabels(ctx context.Context, name string) (map[string]string, error)
- func (c *Client) ImagePull(ctx context.Context, rawImage string, skipTLSVerify bool) ([]string, error)
- func (c *Client) ImagePush(ctx context.Context, source, destination string, skipTLSVerify bool) error
- func (c *Client) ImageRemove(ctx context.Context, names []string, force bool) error
- func (c *Client) ImageTag(ctx context.Context, nameOrID, tag, repo string) error
- func (c *Client) NetworkCreate(ctx context.Context, name, subnet string) error
- func (c *Client) NetworkExists(ctx context.Context, name string) (bool, error)
- func (c *Client) NetworkInspect(ctx context.Context, name, format string) (string, error)
- func (c *Client) NetworkRemove(ctx context.Context, name string) error
- func (c *Client) VolumeCreate(ctx context.Context, name string, labels map[string]string) error
- func (c *Client) VolumeExists(ctx context.Context, name string) (bool, error)
- func (c *Client) VolumeInspectLabels(ctx context.Context, name string) (map[string]string, error)
- func (c *Client) VolumeList(ctx context.Context, filter string) ([]string, error)
- func (c *Client) VolumeRemove(ctx context.Context, name string) error
- type ClientOption
- type ContainerCreateOptions
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
}
func NewClient ¶
func NewClient(opts ...ClientOption) (*Client, error)
func (*Client) ContainerCopy ¶
func (*Client) ContainerCopyContent ¶
func (*Client) ContainerCreate ¶
func (*Client) ContainerExec ¶
func (*Client) ContainerExecInteractive ¶
func (*Client) ContainerExecQuiet ¶
func (*Client) ContainerExists ¶
func (*Client) ContainerInspect ¶
func (*Client) ContainerList ¶
func (*Client) ContainerRemove ¶
func (*Client) ContainerRunQuiet ¶
func (*Client) ContainerStart ¶
func (*Client) ContainerStatus ¶
func (*Client) ContainerStop ¶
func (*Client) ContainerWait ¶
func (*Client) GetPublishedPort ¶
func (*Client) ImageExists ¶
func (*Client) ImageInspectLabels ¶
func (*Client) ImageRemove ¶
func (*Client) NetworkCreate ¶
func (*Client) NetworkExists ¶
func (*Client) NetworkInspect ¶
func (*Client) NetworkRemove ¶
func (*Client) VolumeCreate ¶
func (*Client) VolumeExists ¶
func (*Client) VolumeInspectLabels ¶
func (*Client) VolumeList ¶
type ClientOption ¶
type ClientOption func(*Client)
type ContainerCreateOptions ¶
type ContainerCreateOptions struct {
Name string
Image string
Entrypoint []string
Command []string
Network string
NetworkOptions map[string]nettypes.PerNetworkOptions
Devices []specs.LinuxDevice
Volumes []*specgen.NamedVolume
Mounts []specs.Mount
ImageVolumes []*specgen.ImageVolume
PortMappings []nettypes.PortMapping
Environment map[string]string
Labels map[string]string
CapAdd []string
SelinuxOpts []string
Privileged bool
}
Click to show internal directories.
Click to hide internal directories.