# Functions
Fatal prints a warning to stderr and exits.
GetDefaultGenerator creates a default configuration generator.
GetRuntimeToolsNamespace converts a namespace type string for /proc into a string for runtime-tools.
NewRuntime create a runtime by command and the bundle directory.
PrepareBundle creates a test bundle in a temporary directory.
RuntimeInsideValidate runs runtimetest inside a container.
RuntimeLifecycleValidate validates runtime lifecycle.
RuntimeOutsideValidate validate runtime outside a container.
Skip skips a full TAP suite.
SpecErrorOK generates TAP output indicating whether a spec code test passed or failed.
ValidateLinuxResourcesBlockIO validates linux.resources.blockIO.
ValidateLinuxResourcesCPU validates if Linux.Resources.CPU is set to correct values, the same as given values in the config.
ValidateLinuxResourcesCPUEmpty validates Linux.Resources.CPU is set to correct values, when each value are set to the default ones.
ValidateLinuxResourcesDevices validates linux.resources.devices.
ValidateLinuxResourcesMemory validates linux.resources.memory.
ValidateLinuxResourcesNetwork validates linux.resources.network.
ValidateLinuxResourcesPids validates linux.resources.pids.
WaitingForStatus waits an expected runtime status, return error if 1.
# Constants
CPUCgroupPrefix is default path prefix where CPU cgroups are created.
DefaultSignal represents the default signal sends to a container.
LifecycleActionCreate creates a container.
LifecycleActionDelete deletes a container.
LifecycleActionNone does nothing.
LifecycleActionStart starts a container.
LifecycleStatusCreated "created".
LifecycleStatusCreating "creating".
LifecycleStatusRunning "running".
LifecycleStatusStopped "stopped".
# Variables
ProcNamespaces defines a list of namespaces to be found under /proc/*/ns/.
RuntimeCommand is the default runtime command.
# Structs
LifecycleConfig includes 1.
Runtime represents the basic requirement of a container runtime.
# Type aliases
AfterFunc validate container's outside environment after created.
LifecycleAction defines the phases will be called.
LifecycleStatus follows https://github.com/opencontainers/runtime-spec/blob/master/runtime.md#state.
PreFunc initializes the test environment after preparing the bundle but before creating the container.