client

package
v0.0.0-...-4c9e8ac Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShortId

func GetShortId(dockerID string) (string, error)

getShortId returns short version of container ID (12 char)

func GetSubsystemPath

func GetSubsystemPath(subsystem string, id string) (string, error)

func NewDockerClient

func NewDockerClient() *dockerClient

Types

type DockerClientInterface

type DockerClientInterface interface {
	ListContainersAsMap() (map[string]docker.APIContainers, error)
	GetStatsFromContainer(string, bool) (*wrapper.Statistics, error)
	InspectContainer(string) (*docker.Container, error)
	FindCgroupMountpoint(string) (string, error)
	Version() ([]int, error)
}

Jump to

Keyboard shortcuts

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