Documentation ¶
Overview ¶
Package testsources is a generated GoMock package.
Index ¶
- type Interface
- type MockInterface
- func (m *MockInterface) Create(arg0 *v1.TestSource, arg1 ...Option) (*v1.TestSource, error)
- func (m *MockInterface) Delete(arg0 string) error
- func (m *MockInterface) DeleteByLabels(arg0 string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(arg0 string) (*v1.TestSource, error)
- func (m *MockInterface) List(arg0 string) (*v1.TestSourceList, error)
- func (m *MockInterface) Update(arg0 *v1.TestSource, arg1 ...Option) (*v1.TestSource, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type Option
- type TestSourcesClient
- func (s TestSourcesClient) Create(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
- func (s TestSourcesClient) Delete(name string) error
- func (s TestSourcesClient) DeleteByLabels(selector string) error
- func (s TestSourcesClient) Get(name string) (*testsourcev1.TestSource, error)
- func (s TestSourcesClient) List(selector string) (*testsourcev1.TestSourceList, error)
- func (s TestSourcesClient) Update(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
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
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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 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 ¶
func (s TestSourcesClient) Get(name string) (*testsourcev1.TestSource, error)
Get gets test source by name in given namespace
func (TestSourcesClient) List ¶
func (s TestSourcesClient) List(selector string) (*testsourcev1.TestSourceList, error)
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