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 NewInClusterConfig() 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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
Click to show internal directories.
Click to hide internal directories.