v2

package
v1.8.13 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package v2 is a generated GoMock package.

Index

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
	UpdateStatus(testSuite *testsuitev2.TestSuite) 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) Create added in v1.5.5

func (m *MockInterface) Create(arg0 *v2.TestSuite) (*v2.TestSuite, error)

Create mocks base method.

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

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

func (m *MockInterface) LoadTestVariablesSecret(arg0 *v2.TestSuite) (*v1.Secret, error)

LoadTestVariablesSecret mocks base method.

func (*MockInterface) Update added in v1.5.5

func (m *MockInterface) Update(arg0 *v2.TestSuite) (*v2.TestSuite, error)

Update mocks base method.

func (*MockInterface) UpdateStatus added in v1.8.4

func (m *MockInterface) UpdateStatus(testSuite *v2.TestSuite) error

UpdateStatus 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) UpdateStatus added in v1.8.4

func (mr *MockInterfaceMockRecorder) UpdateStatus(testSuite interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

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

type TestSuitesClient struct {
	Client    client.Client
	Namespace string
}

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

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

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

Update updates existing TestSuite

func (TestSuitesClient) UpdateStatus added in v1.8.4

func (s TestSuitesClient) UpdateStatus(testSuite *testsuitev2.TestSuite) error

UpdateStatus updates existing TestSuite status

func (TestSuitesClient) UpdateTestsuiteSecrets

func (s TestSuitesClient) UpdateTestsuiteSecrets(testsuite *testsuitev2.TestSuite) error

Jump to

Keyboard shortcuts

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