tests

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestsClient

type TestsClient struct {
	Client    client.Client
	Namespace string
}

TestClient implements methods to work with Test

func NewClient

func NewClient(client client.Client, namespace string) *TestsClient

NewClent creates new Test client

func (TestsClient) Create

func (s TestsClient) Create(test *testsv2.Test) (*testsv2.Test, error)

Create creates new Test and coupled resources

func (TestsClient) CreateTestSecrets added in v1.0.21

func (s TestsClient) CreateTestSecrets(test *testsv2.Test) error

CreateTestSecrets creates corresponding test vars secrets

func (TestsClient) Delete

func (s TestsClient) Delete(name string) error

Delete deletes existing Test and coupled resources (secrets)

func (TestsClient) DeleteAll

func (s TestsClient) DeleteAll() error

DeleteAll deletes all Tests

func (TestsClient) DeleteByLabels added in v1.0.20

func (s TestsClient) DeleteByLabels(selector string) error

DeleteByLabels deletes tests by labels

func (TestsClient) ErrIsNotFound added in v1.0.22

func (s TestsClient) ErrIsNotFound(err error) bool

func (TestsClient) Get

func (s TestsClient) Get(name string) (*testsv2.Test, error)

Get returns Test, loads and decodes secrets data

func (TestsClient) GetCurrentSecretUUID added in v1.3.0

func (s TestsClient) GetCurrentSecretUUID(testName string) (string, error)

GetCurrentSecretUUID returns current secret uuid

func (TestsClient) GetSecretTestVars added in v1.3.0

func (s TestsClient) GetSecretTestVars(testName, secretUUID string) (map[string]string, error)

GetSecretTestVars returns secret test vars

func (TestsClient) List

func (s TestsClient) List(selector string) (*testsv2.TestList, error)

List lists Tests

func (TestsClient) ListByNames added in v1.3.18

func (s TestsClient) ListByNames(names []string) ([]testsv2.Test, error)

ListByNames returns Tests by names TODO - should be replaced by --field-selector when it supports IN for expression

func (TestsClient) ListLabels added in v0.10.3

func (s TestsClient) ListLabels() (map[string][]string, error)

ListLabels labels for Tests

func (TestsClient) LoadTestVariablesSecret added in v1.0.21

func (s TestsClient) LoadTestVariablesSecret(test *testsv2.Test) (*corev1.Secret, error)

func (TestsClient) TestHasSecrets added in v1.3.20

func (s TestsClient) TestHasSecrets(test *testsv2.Test) (has bool)

func (TestsClient) Update

func (s TestsClient) Update(test *testsv2.Test) (*testsv2.Test, error)

Update updates existing Test and coupled resources

func (TestsClient) UpdateTestSecrets added in v1.0.21

func (s TestsClient) UpdateTestSecrets(test *testsv2.Test) error

Jump to

Keyboard shortcuts

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