v3

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 14 Imported by: 3

Documentation

Overview

Package v3 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	List(selector string) (*testsuitev3.TestSuiteList, error)
	ListLabels() (map[string][]string, error)
	Get(name string) (*testsuitev3.TestSuite, error)
	Create(testsuite *testsuitev3.TestSuite) (*testsuitev3.TestSuite, error)
	Update(testsuite *testsuitev3.TestSuite) (*testsuitev3.TestSuite, error)
	Delete(name string) error
	DeleteAll() error
	CreateTestsuiteSecrets(testsuite *testsuitev3.TestSuite) error
	UpdateTestsuiteSecrets(testsuite *testsuitev3.TestSuite) error
	LoadTestsuiteVariablesSecret(testsuite *testsuitev3.TestSuite) (*corev1.Secret, error)
	GetCurrentSecretUUID(testsuiteName string) (string, error)
	GetSecretTestSuiteVars(testsuiteName, secretUUID string) (map[string]string, error)
	DeleteByLabels(selector string) error
	UpdateStatus(testsuite *testsuitev3.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) Create

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

Create mocks base method.

func (*MockInterface) CreateTestsuiteSecrets

func (m *MockInterface) CreateTestsuiteSecrets(arg0 *v3.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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Get

func (m *MockInterface) Get(arg0 string) (*v3.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) (*v3.TestSuiteList, error)

List mocks base method.

func (*MockInterface) ListLabels

func (m *MockInterface) ListLabels() (map[string][]string, error)

ListLabels mocks base method.

func (*MockInterface) LoadTestsuiteVariablesSecret

func (m *MockInterface) LoadTestsuiteVariablesSecret(arg0 *v3.TestSuite) (*v1.Secret, error)

LoadTestsuiteVariablesSecret mocks base method.

func (*MockInterface) Update

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

Update mocks base method.

func (*MockInterface) UpdateStatus

func (m *MockInterface) UpdateStatus(arg0 *v3.TestSuite) error

UpdateStatus mocks base method.

func (*MockInterface) UpdateTestsuiteSecrets

func (m *MockInterface) UpdateTestsuiteSecrets(arg0 *v3.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

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 *testsuitev3.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) (*testsuitev3.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 *testsuitev3.TestSuite) (*corev1.Secret, error)

func (TestSuitesClient) TestsuiteHasSecrets

func (s TestSuitesClient) TestsuiteHasSecrets(testsuite *testsuitev3.TestSuite) (has bool)

func (TestSuitesClient) Update

Update updates existing TestSuite

func (TestSuitesClient) UpdateStatus

func (s TestSuitesClient) UpdateStatus(testsuite *testsuitev3.TestSuite) error

UpdateStatus updates existing TestSuite status

func (TestSuitesClient) UpdateTestsuiteSecrets

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

Jump to

Keyboard shortcuts

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