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) LoadTestsuiteVariablesSecret(arg0 *v2.TestSuite) (*v1.Secret, error)
- func (m *MockInterface) Update(arg0 *v2.TestSuite) (*v2.TestSuite, error)
- func (m *MockInterface) UpdateStatus(arg0 *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) LoadTestsuiteVariablesSecret(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStatus(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) LoadTestsuiteVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error)
- func (s TestSuitesClient) TestsuiteHasSecrets(testsuite *testsuitev2.TestSuite) (has bool)
- func (s TestSuitesClient) Update(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
- func (s TestSuitesClient) UpdateStatus(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 ¶
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 LoadTestsuiteVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error) GetCurrentSecretUUID(testSuiteName string) (string, error) GetSecretTestSuiteVars(testSuiteName, secretUUID string) (map[string]string, error) DeleteByLabels(selector string) error UpdateStatus(testSuite *testsuitev2.TestSuite) error }
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) CreateTestsuiteSecrets ¶
func (m *MockInterface) CreateTestsuiteSecrets(arg0 *v2.TestSuite) error
CreateTestsuiteSecrets mocks base method.
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(arg0 string) error
Delete mocks base method.
func (*MockInterface) DeleteAll ¶
func (m *MockInterface) DeleteAll() error
DeleteAll mocks base method.
func (*MockInterface) DeleteByLabels ¶
func (m *MockInterface) DeleteByLabels(arg0 string) error
DeleteByLabels mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Get ¶
func (m *MockInterface) Get(arg0 string) (*v2.TestSuite, error)
Get mocks base method.
func (*MockInterface) GetCurrentSecretUUID ¶
func (m *MockInterface) GetCurrentSecretUUID(arg0 string) (string, error)
GetCurrentSecretUUID mocks base method.
func (*MockInterface) GetSecretTestSuiteVars ¶
func (m *MockInterface) GetSecretTestSuiteVars(arg0, arg1 string) (map[string]string, error)
GetSecretTestSuiteVars mocks base method.
func (*MockInterface) List ¶
func (m *MockInterface) List(arg0 string) (*v2.TestSuiteList, error)
List mocks base method.
func (*MockInterface) ListLabels ¶
func (m *MockInterface) ListLabels() (map[string][]string, error)
ListLabels mocks base method.
func (*MockInterface) LoadTestsuiteVariablesSecret ¶
LoadTestsuiteVariablesSecret mocks base method.
func (*MockInterface) UpdateStatus ¶
func (m *MockInterface) UpdateStatus(arg0 *v2.TestSuite) error
UpdateStatus mocks base method.
func (*MockInterface) UpdateTestsuiteSecrets ¶
func (m *MockInterface) UpdateTestsuiteSecrets(arg0 *v2.TestSuite) error
UpdateTestsuiteSecrets mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Create ¶
func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockInterfaceMockRecorder) CreateTestsuiteSecrets ¶
func (mr *MockInterfaceMockRecorder) CreateTestsuiteSecrets(arg0 interface{}) *gomock.Call
CreateTestsuiteSecrets indicates an expected call of CreateTestsuiteSecrets.
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) DeleteAll ¶
func (mr *MockInterfaceMockRecorder) DeleteAll() *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockInterfaceMockRecorder) DeleteByLabels ¶
func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
DeleteByLabels indicates an expected call of DeleteByLabels.
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockInterfaceMockRecorder) GetCurrentSecretUUID ¶
func (mr *MockInterfaceMockRecorder) GetCurrentSecretUUID(arg0 interface{}) *gomock.Call
GetCurrentSecretUUID indicates an expected call of GetCurrentSecretUUID.
func (*MockInterfaceMockRecorder) GetSecretTestSuiteVars ¶
func (mr *MockInterfaceMockRecorder) GetSecretTestSuiteVars(arg0, arg1 interface{}) *gomock.Call
GetSecretTestSuiteVars indicates an expected call of GetSecretTestSuiteVars.
func (*MockInterfaceMockRecorder) List ¶
func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockInterfaceMockRecorder) ListLabels ¶
func (mr *MockInterfaceMockRecorder) ListLabels() *gomock.Call
ListLabels indicates an expected call of ListLabels.
func (*MockInterfaceMockRecorder) LoadTestsuiteVariablesSecret ¶
func (mr *MockInterfaceMockRecorder) LoadTestsuiteVariablesSecret(arg0 interface{}) *gomock.Call
LoadTestsuiteVariablesSecret indicates an expected call of LoadTestsuiteVariablesSecret.
func (*MockInterfaceMockRecorder) Update ¶
func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockInterfaceMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockInterfaceMockRecorder) UpdateTestsuiteSecrets ¶
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) LoadTestsuiteVariablesSecret ¶
func (s TestSuitesClient) LoadTestsuiteVariablesSecret(testsuite *testsuitev2.TestSuite) (*corev1.Secret, error)
func (TestSuitesClient) TestsuiteHasSecrets ¶
func (s TestSuitesClient) TestsuiteHasSecrets(testsuite *testsuitev2.TestSuite) (has bool)
func (TestSuitesClient) Update ¶
func (s TestSuitesClient) Update(testsuite *testsuitev2.TestSuite) (*testsuitev2.TestSuite, error)
Update updates existing TestSuite
func (TestSuitesClient) UpdateStatus ¶
func (s TestSuitesClient) UpdateStatus(testSuite *testsuitev2.TestSuite) error
UpdateStatus updates existing TestSuite status
func (TestSuitesClient) UpdateTestsuiteSecrets ¶
func (s TestSuitesClient) UpdateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error