envtest

package
v0.0.0-...-9022789 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(binDir, crdDir string, debug bool) (*rest.Config, error)

Start initializes a test environment with an API server and etcd. binDir points to a directory containing the API server and etcd binaries. If crdDir is non-empty, the CRDs defined in that directory will be created. To view the logs of API server and etcd logs (in stderr), set debug to true.

The returned rest config can be used by clientsets to interact with the API server.

func Stop

func Stop() error

Stop will terminates the test environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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