Documentation
¶
Overview ¶
Package libdocker provides docker related library functions.
Index ¶
- func AllContainers(endpoint string) ([]dockerclient.APIContainers, error)
- func AllImages(endpoint string) ([]dockerclient.APIImages, error)
- func AllInspectedContainers(endpoint string) ([]*dockerclient.Container, error)
- func DockerClient(endpoint string) (*dockerclient.Client, error)
- type CompleteDockerImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllContainers ¶
func AllContainers(endpoint string) ([]dockerclient.APIContainers, error)
AllContainers is a convenience function to fetch a slice of all containers data.
func AllImages ¶ added in v1.1.0
func AllImages(endpoint string) ([]dockerclient.APIImages, error)
AllImages is a convenience function to fetch a slice of all images data.
func AllInspectedContainers ¶ added in v1.1.0
func AllInspectedContainers(endpoint string) ([]*dockerclient.Container, error)
AllInspectedContainers is a convenience function to fetch a slice of all inspected containers data.
func DockerClient ¶
func DockerClient(endpoint string) (*dockerclient.Client, error)
DockerClient returns dockerclient.Client which handles Docker connection.
Types ¶
type CompleteDockerImage ¶ added in v1.1.0
type CompleteDockerImage struct {
RepoTags []string `json:"RepoTags,omitempty" yaml:"RepoTags,omitempty"`
VirtualSize int64 `json:"VirtualSize,omitempty" yaml:"VirtualSize,omitempty"`
ParentID string `json:"ParentId,omitempty" yaml:"ParentId,omitempty"`
dockerclient.Image
}
func AllInspectedImages ¶ added in v1.1.0
func AllInspectedImages(endpoint string) ([]*CompleteDockerImage, error)
AllInspectedImages is a convenience function to fetch a slice of all inspected images data.
Click to show internal directories.
Click to hide internal directories.