testsources

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Overview

Package testsources 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) (*testsourcev1.TestSourceList, error)
	Get(name string) (*testsourcev1.TestSource, error)
	Create(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
	Update(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
	Delete(name string) error
	DeleteByLabels(selector string) 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(testSource *v1.TestSource, options ...Option) (*v1.TestSource, error)

Create mocks base method.

func (*MockInterface) Delete

func (m *MockInterface) Delete(name string) error

Delete mocks base method.

func (*MockInterface) DeleteByLabels

func (m *MockInterface) DeleteByLabels(selector 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(name string) (*v1.TestSource, error)

Get mocks base method.

func (*MockInterface) List

func (m *MockInterface) List(selector string) (*v1.TestSourceList, error)

List mocks base method.

func (*MockInterface) Update

func (m *MockInterface) Update(testSource *v1.TestSource, options ...Option) (*v1.TestSource, error)

Update 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(testSource interface{}, options ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockInterfaceMockRecorder) Delete

func (mr *MockInterfaceMockRecorder) Delete(name interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockInterfaceMockRecorder) DeleteByLabels

func (mr *MockInterfaceMockRecorder) DeleteByLabels(selector interface{}) *gomock.Call

DeleteByLabels indicates an expected call of DeleteByLabels.

func (*MockInterfaceMockRecorder) Get

func (mr *MockInterfaceMockRecorder) Get(name interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) List

func (mr *MockInterfaceMockRecorder) List(selector interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockInterfaceMockRecorder) Update

func (mr *MockInterfaceMockRecorder) Update(testSource interface{}, options ...interface{}) *gomock.Call

Update indicates an expected call of Update.

type Option

type Option struct {
	Secrets map[string]string
}

Option contain test source options

type TestSourcesClient

type TestSourcesClient struct {
	// contains filtered or unexported fields
}

TestSourcesClient client for getting test sources CRs

func NewClient

func NewClient(client client.Client, namespace string) *TestSourcesClient

NewClient returns new client instance, needs kubernetes client to be passed as dependecy

func (TestSourcesClient) Create

func (s TestSourcesClient) Create(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)

Create creates new test source CRD

func (TestSourcesClient) Delete

func (s TestSourcesClient) Delete(name string) error

Delete deletes test source by name

func (TestSourcesClient) DeleteByLabels

func (s TestSourcesClient) DeleteByLabels(selector string) error

DeleteByLabels deletes test sources by labels

func (TestSourcesClient) Get

Get gets test source by name in given namespace

func (TestSourcesClient) List

List shows list of available test sources

func (TestSourcesClient) Update

func (s TestSourcesClient) Update(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)

Update updates test source

Jump to

Keyboard shortcuts

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