Documentation
¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) ContainerInspect(containerID string) (types.ContainerJSON, error)
- func (c *Client) ContainerList(filterArgs filters.Args) ([]types.Container, error)
- func (c *Client) ImageInspectWithRaw(imageID string) (types.ImageInspect, error)
- func (c *Client) IsDanglingImage(image types.ImageInspect) bool
- func (c *Client) IsDigest(imageID string) bool
- func (c *Client) IsLocalImage(image types.ImageInspect) bool
- func (c *Client) ServiceList(filterArgs filters.Args) ([]swarm.Service, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents an active docker object
func (*Client) ContainerInspect ¶ added in v4.15.0
func (c *Client) ContainerInspect(containerID string) (types.ContainerJSON, error)
ContainerInspect returns the container information.
func (*Client) ContainerList ¶
ContainerList returns Docker containers
func (*Client) ImageInspectWithRaw ¶ added in v4.15.0
func (c *Client) ImageInspectWithRaw(imageID string) (types.ImageInspect, error)
ImageInspectWithRaw returns the image information and its raw representation.
func (*Client) IsDanglingImage ¶
func (c *Client) IsDanglingImage(image types.ImageInspect) bool
IsDanglingImage returns whether the given image is "dangling" which means that there are no repository references to the given image and it has no child images
func (*Client) IsDigest ¶ added in v4.15.0
IsDigest determines image it looks like a digest based image reference.
func (*Client) IsLocalImage ¶
func (c *Client) IsLocalImage(image types.ImageInspect) bool
IsLocalImage checks if the image has been built locally
Click to show internal directories.
Click to hide internal directories.