Documentation ¶
Index ¶
- type Option
- type TestsClient
- func (s TestsClient) Create(test *testsv3.Test, options ...Option) (*testsv3.Test, error)
- func (s TestsClient) CreateTestSecrets(test *testsv3.Test) error
- func (s TestsClient) Delete(name string) error
- func (s TestsClient) DeleteAll() error
- func (s TestsClient) DeleteByLabels(selector string) error
- func (s TestsClient) Get(name string) (*testsv3.Test, error)
- func (s TestsClient) GetCurrentSecretUUID(testName string) (string, error)
- func (s TestsClient) GetSecretTestVars(testName, secretUUID string) (map[string]string, error)
- func (s TestsClient) List(selector string) (*testsv3.TestList, error)
- func (s TestsClient) ListByNames(names []string) ([]testsv3.Test, error)
- func (s TestsClient) ListLabels() (map[string][]string, error)
- func (s TestsClient) LoadTestVariablesSecret(test *testsv3.Test) (*corev1.Secret, error)
- func (s TestsClient) TestHasSecrets(test *testsv3.Test) (has bool)
- func (s TestsClient) Update(test *testsv3.Test, options ...Option) (*testsv3.Test, error)
- func (s TestsClient) UpdateTestSecrets(test *testsv3.Test) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestsClient ¶
type TestsClient struct {
// contains filtered or unexported fields
}
TestsClient implements methods to work with Test
func NewClient ¶
func NewClient(client client.Client, namespace string) *TestsClient
NewClient creates new Test client
func (TestsClient) CreateTestSecrets ¶
func (s TestsClient) CreateTestSecrets(test *testsv3.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) DeleteByLabels ¶
func (s TestsClient) DeleteByLabels(selector string) error
DeleteByLabels deletes tests by labels
func (TestsClient) Get ¶
func (s TestsClient) Get(name string) (*testsv3.Test, error)
Get returns Test, loads and decodes secrets data
func (TestsClient) GetCurrentSecretUUID ¶
func (s TestsClient) GetCurrentSecretUUID(testName string) (string, error)
GetCurrentSecretUUID returns current secret uuid
func (TestsClient) GetSecretTestVars ¶
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) (*testsv3.TestList, error)
List lists Tests
func (TestsClient) ListByNames ¶
func (s TestsClient) ListByNames(names []string) ([]testsv3.Test, error)
ListByNames returns Tests by names TODO - should be replaced by --field-selector when it supports IN for expression
func (TestsClient) ListLabels ¶
func (s TestsClient) ListLabels() (map[string][]string, error)
ListLabels labels for Tests
func (TestsClient) LoadTestVariablesSecret ¶
func (TestsClient) TestHasSecrets ¶
func (s TestsClient) TestHasSecrets(test *testsv3.Test) (has bool)
func (TestsClient) UpdateTestSecrets ¶
func (s TestsClient) UpdateTestSecrets(test *testsv3.Test) error
Click to show internal directories.
Click to hide internal directories.