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 DockerClient(endpoint string) (*dockerclient.Client, error)
- func InfoAndVersion(endpoint string) (map[string]interface{}, error)
- type CompleteDockerContainer
- 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 ¶
func AllImages(endpoint string) ([]dockerclient.APIImages, error)
AllImages is a convenience function to fetch a slice of all images data.
func DockerClient ¶
func DockerClient(endpoint string) (*dockerclient.Client, error)
DockerClient returns dockerclient.Client which handles Docker connection.
func InfoAndVersion ¶
InfoAndVersion is a convenience function to fetch info and version data.
Types ¶
type CompleteDockerContainer ¶
type CompleteDockerContainer struct { NiceImageName string `json:"NiceImageName,omitempty" yaml:"NiceImageName,omitempty"` Command string `json:"Command,omitempty" yaml:"Command,omitempty"` Status string `json:"Status,omitempty" yaml:"Status,omitempty"` dockerclient.Container }
func AllInspectedContainers ¶
func AllInspectedContainers(endpoint string) ([]*CompleteDockerContainer, error)
AllInspectedContainers is a convenience function to fetch a slice of all inspected containers data.
type CompleteDockerImage ¶
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 ¶
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.