criapi

package
v0.0.0-...-273f5df Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSandboxes

func GetSandboxes(sandboxCount int) []*kubeapi.PodSandboxConfig

GetSandboxes returns the specified number of PodSandboxConfig objects with "fake" contents.

Types

type ContainerTestConfig

type ContainerTestConfig struct {
	// Container name.
	Name string
	// Pod sandbox id.
	SandboxID string
	// Container id.
	ContainerID string
	// Image reference.
	Image string
	// Container labels.
	Labels map[string]string
	// Container annotations.
	Annotations map[string]string
}

ContainerTestConfig specifies configuration for a container test.

func GetContainersConfig

func GetContainersConfig(sandboxConfigs []*kubeapi.PodSandboxConfig) []*ContainerTestConfig

GetContainersConfig returns the specified number of ContainerTestConfig objects.

Jump to

Keyboard shortcuts

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