environment

package
v0.0.0-...-1b9e8c6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PouchBinary is default binary
	PouchBinary = "/usr/local/bin/pouch"

	// PouchdAddress is default pouchd address
	PouchdAddress = "unix:///var/run/pouchd.sock"

	// PouchdUnixDomainSock is the default unix domain socket file used by pouchd.
	PouchdUnixDomainSock = "/var/run/pouchd.sock"

	// TLSConfig is default tls config
	TLSConfig = utils.TLSConfig{}
)

Functions

func IsAliKernel

func IsAliKernel() bool

IsAliKernel checks if the kernel of test environment is AliKernel.

func IsDiskQuota

func IsDiskQuota() bool

IsDiskQuota checks if it can use disk quota for container.

func IsDumbInitExist

func IsDumbInitExist() bool

IsDumbInitExist checks if the dumb-init binary exists on host.

func IsHubConnected

func IsHubConnected() bool

IsHubConnected checks if hub address can be connected.

func IsLinux

func IsLinux() bool

IsLinux checks if the OS of test environment is Linux.

func IsRuncVersionSupportRichContianer

func IsRuncVersionSupportRichContianer() bool

IsRuncVersionSupportRichContianer checks if the version of runc supports rich container.

func PruneAllContainers

func PruneAllContainers(apiClient client.ContainerAPIClient) error

PruneAllContainers deletes all containers from pouchd.

func PruneAllImages

func PruneAllImages(apiClient client.ImageAPIClient) error

PruneAllImages deletes all images from pouchd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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