Documentation ¶
Index ¶
- Variables
- func FindDisk() (string, bool)
- func GetBusybox()
- func GetHelloWorld()
- func GetTestNetwork()
- func IsAliKernel() bool
- func IsDiskQuota() bool
- func IsDumbInitExist() bool
- func IsGrpquota() bool
- func IsHubConnected() bool
- func IsLinux() bool
- func IsLxcfsEnabled() bool
- func IsPrjquota() bool
- func IsRuncVersionSupportRichContianer() bool
- func PruneAllContainers(apiClient client.ContainerAPIClient) error
- func PruneAllImages(apiClient client.ImageAPIClient) error
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 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 IsHubConnected ¶
func IsHubConnected() bool
IsHubConnected checks if hub address can be connected.
func IsLxcfsEnabled ¶
func IsLxcfsEnabled() bool
IsLxcfsEnabled checks if the lxcfs is installed and service is enabled.
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.
Click to show internal directories.
Click to hide internal directories.