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