testing

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// SandboxRuntimeClass is a valid RuntimeClass pre-populated in the populated dynamic client.
	SandboxRuntimeClass = "sandbox"
	// SandboxRuntimeHandler is the handler associated with the SandboxRuntimeClass.
	SandboxRuntimeHandler = "kata-containers"

	// EmptyRuntimeClass is a valid RuntimeClass without a handler pre-populated in the populated dynamic client.
	EmptyRuntimeClass = "native"
)

Variables

This section is empty.

Functions

func NewPopulatedClient added in v1.14.0

func NewPopulatedClient() clientset.Interface

NewPopulatedClient creates a fake client for use with the runtimeclass.Manager, and populates it with a few test RuntimeClass objects.

func NewRuntimeClass added in v1.14.0

func NewRuntimeClass(name, handler string) *nodev1beta1.RuntimeClass

NewRuntimeClass is a helper to generate a RuntimeClass resource with the given name & handler.

func StartManagerSync

func StartManagerSync(m *runtimeclass.Manager) func()

StartManagerSync starts the manager, and waits for the informer cache to sync. Returns a function to stop the manager, which should be called with a defer:

defer StartManagerSync(t, m)()

Types

This section is empty.

Jump to

Keyboard shortcuts

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