Documentation ¶
Overview ¶
Package tests is a generated GoMock package.
Index ¶
- type Interface
- type MockInterface
- func (m *MockInterface) Create(arg0 *v3.Test, arg1 ...Option) (*v3.Test, error)
- func (m *MockInterface) CreateTestSecrets(arg0 *v3.Test) error
- func (m *MockInterface) Delete(arg0 string) error
- func (m *MockInterface) DeleteAll() error
- func (m *MockInterface) DeleteByLabels(arg0 string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(arg0 string) (*v3.Test, error)
- func (m *MockInterface) GetCurrentSecretUUID(arg0 string) (string, error)
- func (m *MockInterface) GetSecretTestVars(arg0, arg1 string) (map[string]string, error)
- func (m *MockInterface) List(arg0 string) (*v3.TestList, error)
- func (m *MockInterface) ListByNames(arg0 []string) ([]v3.Test, error)
- func (m *MockInterface) ListLabels() (map[string][]string, error)
- func (m *MockInterface) LoadTestVariablesSecret(arg0 *v3.Test) (*v1.Secret, error)
- func (m *MockInterface) Update(arg0 *v3.Test, arg1 ...Option) (*v3.Test, error)
- func (m *MockInterface) UpdateStatus(test *v3.Test) error
- func (m *MockInterface) UpdateTestSecrets(arg0 *v3.Test) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateTestSecrets(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteAll() *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetCurrentSecretUUID(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetSecretTestVars(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListByNames(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListLabels() *gomock.Call
- func (mr *MockInterfaceMockRecorder) LoadTestVariablesSecret(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStatus(test interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateTestSecrets(arg0 interface{}) *gomock.Call
- 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) UpdateStatus(test *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 Interface ¶ added in v1.5.5
type Interface interface { List(selector string) (*testsv3.TestList, error) ListLabels() (map[string][]string, error) Get(name string) (*testsv3.Test, error) Create(test *testsv3.Test, options ...Option) (*testsv3.Test, error) Update(test *testsv3.Test, options ...Option) (*testsv3.Test, error) Delete(name string) error DeleteAll() error CreateTestSecrets(test *testsv3.Test) error UpdateTestSecrets(test *testsv3.Test) error LoadTestVariablesSecret(test *testsv3.Test) (*corev1.Secret, error) GetCurrentSecretUUID(testName string) (string, error) GetSecretTestVars(testName, secretUUID string) (map[string]string, error) ListByNames(names []string) ([]testsv3.Test, error) DeleteByLabels(selector string) error UpdateStatus(test *testsv3.Test) error }
type MockInterface ¶ added in v1.5.5
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶ added in v1.5.5
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) CreateTestSecrets ¶ added in v1.5.5
func (m *MockInterface) CreateTestSecrets(arg0 *v3.Test) error
CreateTestSecrets mocks base method.
func (*MockInterface) Delete ¶ added in v1.5.5
func (m *MockInterface) Delete(arg0 string) error
Delete mocks base method.
func (*MockInterface) DeleteAll ¶ added in v1.5.5
func (m *MockInterface) DeleteAll() error
DeleteAll mocks base method.
func (*MockInterface) DeleteByLabels ¶ added in v1.5.5
func (m *MockInterface) DeleteByLabels(arg0 string) error
DeleteByLabels mocks base method.
func (*MockInterface) EXPECT ¶ added in v1.5.5
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Get ¶ added in v1.5.5
func (m *MockInterface) Get(arg0 string) (*v3.Test, error)
Get mocks base method.
func (*MockInterface) GetCurrentSecretUUID ¶ added in v1.5.5
func (m *MockInterface) GetCurrentSecretUUID(arg0 string) (string, error)
GetCurrentSecretUUID mocks base method.
func (*MockInterface) GetSecretTestVars ¶ added in v1.5.5
func (m *MockInterface) GetSecretTestVars(arg0, arg1 string) (map[string]string, error)
GetSecretTestVars mocks base method.
func (*MockInterface) List ¶ added in v1.5.5
func (m *MockInterface) List(arg0 string) (*v3.TestList, error)
List mocks base method.
func (*MockInterface) ListByNames ¶ added in v1.5.5
func (m *MockInterface) ListByNames(arg0 []string) ([]v3.Test, error)
ListByNames mocks base method.
func (*MockInterface) ListLabels ¶ added in v1.5.5
func (m *MockInterface) ListLabels() (map[string][]string, error)
ListLabels mocks base method.
func (*MockInterface) LoadTestVariablesSecret ¶ added in v1.5.5
LoadTestVariablesSecret mocks base method.
func (*MockInterface) UpdateStatus ¶ added in v1.8.4
func (m *MockInterface) UpdateStatus(test *v3.Test) error
UpdateStatus mocks base method.
func (*MockInterface) UpdateTestSecrets ¶ added in v1.5.5
func (m *MockInterface) UpdateTestSecrets(arg0 *v3.Test) error
UpdateTestSecrets mocks base method.
type MockInterfaceMockRecorder ¶ added in v1.5.5
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Create ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockInterfaceMockRecorder) CreateTestSecrets ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) CreateTestSecrets(arg0 interface{}) *gomock.Call
CreateTestSecrets indicates an expected call of CreateTestSecrets.
func (*MockInterfaceMockRecorder) Delete ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) DeleteAll ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) DeleteAll() *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockInterfaceMockRecorder) DeleteByLabels ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
DeleteByLabels indicates an expected call of DeleteByLabels.
func (*MockInterfaceMockRecorder) Get ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockInterfaceMockRecorder) GetCurrentSecretUUID ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) GetCurrentSecretUUID(arg0 interface{}) *gomock.Call
GetCurrentSecretUUID indicates an expected call of GetCurrentSecretUUID.
func (*MockInterfaceMockRecorder) GetSecretTestVars ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) GetSecretTestVars(arg0, arg1 interface{}) *gomock.Call
GetSecretTestVars indicates an expected call of GetSecretTestVars.
func (*MockInterfaceMockRecorder) List ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockInterfaceMockRecorder) ListByNames ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) ListByNames(arg0 interface{}) *gomock.Call
ListByNames indicates an expected call of ListByNames.
func (*MockInterfaceMockRecorder) ListLabels ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) ListLabels() *gomock.Call
ListLabels indicates an expected call of ListLabels.
func (*MockInterfaceMockRecorder) LoadTestVariablesSecret ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) LoadTestVariablesSecret(arg0 interface{}) *gomock.Call
LoadTestVariablesSecret indicates an expected call of LoadTestVariablesSecret.
func (*MockInterfaceMockRecorder) Update ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockInterfaceMockRecorder) UpdateStatus ¶ added in v1.8.4
func (mr *MockInterfaceMockRecorder) UpdateStatus(test interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockInterfaceMockRecorder) UpdateTestSecrets ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) UpdateTestSecrets(arg0 interface{}) *gomock.Call
UpdateTestSecrets indicates an expected call of UpdateTestSecrets.
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) UpdateStatus ¶ added in v1.8.4
func (s TestsClient) UpdateStatus(test *testsv3.Test) error
UpdateStatus updates existing Test status
func (TestsClient) UpdateTestSecrets ¶
func (s TestsClient) UpdateTestSecrets(test *testsv3.Test) error