environment

package
v0.0.0-...-f2d3d7a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: Apache-2.0 Imports: 9 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 = client.TLSConfig{}

	// BusyboxRepo the repository of busybox image
	BusyboxRepo = "registry.hub.docker.com/library/busybox"

	// BusyboxTag the tag used for busybox image
	BusyboxTag = "1.28"

	// HelloworldRepo the repository of hello-world image
	HelloworldRepo = "registry.hub.docker.com/library/hello-world"

	// HelloworldTag the tag used for hello-world image
	HelloworldTag = "linux"

	// GateWay default gateway for test
	GateWay = "192.168.1.1"

	// Subnet default subnet for test
	Subnet = "192.168.1.0/24"
)

Functions

func FindDisk

func FindDisk() (string, bool)

FindDisk finds a available disk, not partion

func GetBusybox

func GetBusybox()

GetBusybox get image info from test environment variable.

func GetHelloWorld

func GetHelloWorld()

GetHelloWorld get image info from test environment variable.

func GetTestNetwork

func GetTestNetwork()

GetTestNetwork get gateway and subnet from test environment variable.

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 IsGrpquota

func IsGrpquota() bool

IsGrpquota checks if there is grpquota set on test machine

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 IsLxcfsEnabled

func IsLxcfsEnabled() bool

IsLxcfsEnabled checks if the lxcfs is installed and service is enabled.

func IsPrjquota

func IsPrjquota() bool

IsPrjquota checks if there is prjquota set on test machine

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