fake

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 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) []*types.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 []*types.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