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 ¶
- func New() types.Environment
- func NewFromFlags() (types.Environment, error)
- func NewInClusterConfig() types.Environment
- func NewParallel() types.Environment
- func NewWithConfig(cfg *envconf.Config) types.Environment
- func NewWithContext(ctx context.Context, cfg *envconf.Config) (types.Environment, error)
- func NewWithKubeConfig(kubeconfigfile string) types.Environment
- type Environment
- type FeatureFunc
- type Func
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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 TestFunc ¶ added in v0.2.0
type TestFunc = types.TestEnvFunc
Click to show internal directories.
Click to hide internal directories.