tester

package
v0.3.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tester contains the logic to access the test context and the cluster included

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterContext

type ClusterContext struct {
	Config         *rest.Config
	Client         *kubernetes.Clientset
	ClusterID      string
	KubeconfigPath string
}

ClusterContext encapsulate all information and objects used to access a test cluster.

type Tester

type Tester struct {
	Clusters  []ClusterContext
	Namespace string
}

Tester is used to encapsulate the context where the test is executed.

func GetTester

func GetTester(ctx context.Context) *Tester

GetTester returns a Tester instance.

Jump to

Keyboard shortcuts

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