testsources

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 10 Imported by: 0

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 added in v1.5.5

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 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 *v1.TestSource, arg1 ...Option) (*v1.TestSource, error)

Create mocks base method.

func (*MockInterface) Delete added in v1.5.5

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

Delete 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) (*v1.TestSource, error)

Get mocks base method.

func (*MockInterface) List added in v1.5.5

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

List mocks base method.

func (*MockInterface) Update added in v1.5.5

func (m *MockInterface) Update(arg0 *v1.TestSource, arg1 ...Option) (*v1.TestSource, error)

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

Create indicates an expected call of Create.

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) 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) List added in v1.5.5

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

List indicates an expected call of List.

func (*MockInterfaceMockRecorder) Update added in v1.5.5

func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}, arg1 ...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