Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerConfig ¶
func ContainerConfig(name, image string, opts ...ContainerOpts) *runtime.ContainerConfig
ContainerConfig creates a container config given a name and image name and additional container config options
func Eventually ¶
Eventually waits for f to return true, it checks every period, and returns error if timeout exceeds. If f returns error, Eventually will return the same error immediately.
func PodSandboxConfig ¶
func PodSandboxConfig(name, ns string, opts ...PodSandboxOpts) *runtime.PodSandboxConfig
PodSandboxConfig generates a pod sandbox config for test.
Types ¶
type ContainerOpts ¶
type ContainerOpts func(*runtime.ContainerConfig)
ContainerOpts to set any specific attribute like labels, annotations, metadata etc
func WithTestAnnotations ¶
func WithTestAnnotations() ContainerOpts
func WithTestLabels ¶
func WithTestLabels() ContainerOpts
type PodSandboxOpts ¶
type PodSandboxOpts func(*runtime.PodSandboxConfig)
Opts sets specific information in pod sandbox config.
Click to show internal directories.
Click to hide internal directories.