env

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 38

Documentation

Overview

Package env surfaces types to create and manage test environments

Package env exposes types to create type `Environment` used to run feature tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.Environment

New creates a test environment with no config attached.

func NewFromFlags added in v0.1.0

func NewFromFlags() (types.Environment, error)

NewFromFlags creates a test environment using configuration values from CLI flags

func NewInClusterConfig added in v0.0.4

func NewInClusterConfig() types.Environment

NewInClusterConfig creates an environment using an Environment Configuration value and assumes an in-cluster kubeconfig.

func NewParallel added in v0.0.6

func NewParallel() types.Environment

func NewWithConfig

func NewWithConfig(cfg *envconf.Config) types.Environment

NewWithConfig creates an environment using an Environment Configuration value

func NewWithContext added in v0.0.2

func NewWithContext(ctx context.Context, cfg *envconf.Config) (types.Environment, error)

NewWithContext creates a new environment with the provided context and config.

func NewWithKubeConfig added in v0.0.4

func NewWithKubeConfig(kubeconfigfile string) types.Environment

NewWithKubeConfig creates an environment using an Environment Configuration value and the given kubeconfig.

Types

type Environment

type Environment = types.Environment

type FeatureFunc added in v0.0.4

type FeatureFunc = types.FeatureEnvFunc

type Func

type Func = types.EnvFunc

type TestFunc added in v0.2.0

type TestFunc = types.TestEnvFunc

Jump to

Keyboard shortcuts

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