Documentation ¶
Overview ¶
Package v2 is a generated GoMock package.
Index ¶
- type Interface
- type MockInterface
- func (m *MockInterface) Create(arg0 *v2.TestSuite) (*v2.TestSuite, error)
- func (m *MockInterface) CreateTestsuiteSecrets(arg0 *v2.TestSuite) 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) (*v2.TestSuite, error)
- func (m *MockInterface) GetCurrentSecretUUID(arg0 string) (string, error)
- func (m *MockInterface) GetSecretTestSuiteVars(arg0, arg1 string) (map[string]string, error)
- func (m *MockInterface) List(arg0 string) (*v2.TestSuiteList, error)
- func (m *MockInterface) ListLabels() (map[string][]string, error)
- func (m *MockInterface) LoadTestVariablesSecret(arg0 *v2.TestSuite) (*v1.Secret, error)
- func (m *MockInterface) Update(arg0 *v2.TestSuite) (*v2.TestSuite, error)
- func (m *MockInterface) UpdateTestsuiteSecrets(arg0 *v2.TestSuite) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateTestsuiteSecrets(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) GetSecretTestSuiteVars(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListLabels() *gomock.Call
- func (mr *MockInterfaceMockRecorder) LoadTestVariablesSecret(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateTestsuiteSecrets(arg0 interface{}) *gomock.Call
- type TestSuitesClient
- func (s TestSuitesClient) Create(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
- func (s TestSuitesClient) CreateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error
- func (s TestSuitesClient) Delete(name string) error
- func (s TestSuitesClient) DeleteAll() error
- func (s TestSuitesClient) DeleteByLabels(selector string) error
- func (s TestSuitesClient) Get(name string) (*testsuitev2.TestSuite, error)
- func (s TestSuitesClient) GetCurrentSecretUUID(testSuiteName string) (string, error)
- func (s TestSuitesClient) GetSecretTestSuiteVars(testSuiteName, secretUUID string) (map[string]string, error)
- func (s TestSuitesClient) List(selector string) (*testsuitev2.TestSuiteList, error)
- func (s TestSuitesClient) ListLabels() (map[string][]string, error)
- func (s TestSuitesClient) LoadTestVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error)
- func (s TestSuitesClient) Update(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
- func (s TestSuitesClient) UpdateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) 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) (*testsuitev2.TestSuiteList, error) ListLabels() (map[string][]string, error) Get(name string) (*testsuitev2.TestSuite, error) Create(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error) Update(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error) Delete(name string) error DeleteAll() error CreateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error UpdateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error LoadTestVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error) GetCurrentSecretUUID(testSuiteName string) (string, error) GetSecretTestSuiteVars(testSuiteName, secretUUID string) (map[string]string, error) DeleteByLabels(selector string) 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) CreateTestsuiteSecrets ¶ added in v1.5.5
func (m *MockInterface) CreateTestsuiteSecrets(arg0 *v2.TestSuite) error
CreateTestsuiteSecrets 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) (*v2.TestSuite, 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) GetSecretTestSuiteVars ¶ added in v1.5.5
func (m *MockInterface) GetSecretTestSuiteVars(arg0, arg1 string) (map[string]string, error)
GetSecretTestSuiteVars mocks base method.
func (*MockInterface) List ¶ added in v1.5.5
func (m *MockInterface) List(arg0 string) (*v2.TestSuiteList, error)
List 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) UpdateTestsuiteSecrets ¶ added in v1.5.5
func (m *MockInterface) UpdateTestsuiteSecrets(arg0 *v2.TestSuite) error
UpdateTestsuiteSecrets 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{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockInterfaceMockRecorder) CreateTestsuiteSecrets ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) CreateTestsuiteSecrets(arg0 interface{}) *gomock.Call
CreateTestsuiteSecrets indicates an expected call of CreateTestsuiteSecrets.
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) GetSecretTestSuiteVars ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) GetSecretTestSuiteVars(arg0, arg1 interface{}) *gomock.Call
GetSecretTestSuiteVars indicates an expected call of GetSecretTestSuiteVars.
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) 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{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockInterfaceMockRecorder) UpdateTestsuiteSecrets ¶ added in v1.5.5
func (mr *MockInterfaceMockRecorder) UpdateTestsuiteSecrets(arg0 interface{}) *gomock.Call
UpdateTestsuiteSecrets indicates an expected call of UpdateTestsuiteSecrets.
type TestSuitesClient ¶
TestSuitesClient implements methods to work with TestSuites
func NewClient ¶
func NewClient(client client.Client, namespace string) *TestSuitesClient
NewClient creates new TestSuite client
func (TestSuitesClient) Create ¶
func (s TestSuitesClient) Create(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
Create creates new TestSuite
func (TestSuitesClient) CreateTestsuiteSecrets ¶
func (s TestSuitesClient) CreateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error
CreateTestsuiteSecrets creates corresponding TestSuite vars secrets
func (TestSuitesClient) Delete ¶
func (s TestSuitesClient) Delete(name string) error
Delete deletes existing TestSuite
func (TestSuitesClient) DeleteAll ¶
func (s TestSuitesClient) DeleteAll() error
DeleteAll delete all TestSuites
func (TestSuitesClient) DeleteByLabels ¶
func (s TestSuitesClient) DeleteByLabels(selector string) error
DeleteByLabels deletes TestSuites by labels
func (TestSuitesClient) Get ¶
func (s TestSuitesClient) Get(name string) (*testsuitev2.TestSuite, error)
Get returns TestSuite
func (TestSuitesClient) GetCurrentSecretUUID ¶
func (s TestSuitesClient) GetCurrentSecretUUID(testSuiteName string) (string, error)
GetCurrentSecretUUID returns current secret uuid
func (TestSuitesClient) GetSecretTestSuiteVars ¶
func (s TestSuitesClient) GetSecretTestSuiteVars(testSuiteName, secretUUID string) (map[string]string, error)
GetSecretTestSuiteVars returns secret test suite vars
func (TestSuitesClient) List ¶
func (s TestSuitesClient) List(selector string) (*testsuitev2.TestSuiteList, error)
List lists TestSuites
func (TestSuitesClient) ListLabels ¶
func (s TestSuitesClient) ListLabels() (map[string][]string, error)
ListLabelslists labels for TestSuites
func (TestSuitesClient) LoadTestVariablesSecret ¶
func (s TestSuitesClient) LoadTestVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error)
func (TestSuitesClient) Update ¶
func (s TestSuitesClient) Update(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
Update updates existing TestSuite
func (TestSuitesClient) UpdateTestsuiteSecrets ¶
func (s TestSuitesClient) UpdateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error