Documentation ¶
Overview ¶
Provides global docker information.
Handler for Docker containers.
Index ¶
- Constants
- Variables
- func Client() (*dclient.Client, error)
- func ContainerNameToDockerId(name string) string
- func Images() ([]v1.DockerImage, error)
- func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, ...) error
- func RootDir() string
- func Status() (v1.DockerStatus, error)
- func ValidateInfo() (*dockertypes.Info, error)
- func Version() ([]int, error)
- func VersionString() string
Constants ¶
View Source
const DockerNamespace = "docker"
The namespace under which Docker aliases are unique.
Variables ¶
View Source
var ArgDockerEndpoint = flag.String("docker", "unix:///var/run/docker.sock", "docker endpoint")
Functions ¶
func ContainerNameToDockerId ¶
Returns the Docker ID from the full container name.
func Images ¶
func Images() ([]v1.DockerImage, error)
func Register ¶
func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, ignoreMetrics container.MetricSet) error
Register root container before running this function!
func Status ¶
func Status() (v1.DockerStatus, error)
func ValidateInfo ¶
func ValidateInfo() (*dockertypes.Info, error)
Checks whether the dockerInfo reflects a valid docker setup, and returns it if it does, or an error otherwise.
func VersionString ¶
func VersionString() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.