criapi

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 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