docker

package
v0.0.0-...-8a87edd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Provides global docker information.

Handler for Docker containers.

Index

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 APIVersion

func APIVersion() ([]int, error)

func APIVersionString

func APIVersionString() string

func Client

func Client() (*dclient.Client, error)

func ContainerNameToDockerId

func ContainerNameToDockerId(name string) string

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 RootDir

func RootDir() string

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 Version

func Version() ([]int, error)

func VersionString

func VersionString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL