Documentation ¶
Overview ¶
Package testexecutions is a generated GoMock package.
Index ¶
- type Interface
- type MockInterface
- func (m *MockInterface) Create(arg0 *v1.TestExecution) (*v1.TestExecution, error)
- func (m *MockInterface) Delete(arg0 string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(arg0 string) (*v1.TestExecution, error)
- func (m *MockInterface) Update(arg0 *v1.TestExecution) (*v1.TestExecution, error)
- func (m *MockInterface) UpdateStatus(arg0 *v1.TestExecution) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call
- type Option
- type TestExecutionsClient
- func (s TestExecutionsClient) Create(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error)
- func (s TestExecutionsClient) Delete(name string) error
- func (s TestExecutionsClient) Get(name string) (*testexecutionv1.TestExecution, error)
- func (s TestExecutionsClient) Update(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error)
- func (s TestExecutionsClient) UpdateStatus(testExecution *testexecutionv1.TestExecution) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Get(name string) (*testexecutionv1.TestExecution, error) Create(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error) Update(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error) Delete(name string) error UpdateStatus(testЕxecution *testexecutionv1.TestExecution) 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 *v1.TestExecution) (*v1.TestExecution, error)
Create mocks base method.
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(arg0 string) error
Delete 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(arg0 string) (*v1.TestExecution, error)
Get mocks base method.
func (*MockInterface) Update ¶
func (m *MockInterface) Update(arg0 *v1.TestExecution) (*v1.TestExecution, error)
Update mocks base method.
func (*MockInterface) UpdateStatus ¶
func (m *MockInterface) UpdateStatus(arg0 *v1.TestExecution) error
UpdateStatus 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) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
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.
type TestExecutionsClient ¶
type TestExecutionsClient struct {
// contains filtered or unexported fields
}
TestExecutionsClient client for getting test executions CRs
func NewClient ¶
func NewClient(client client.Client, namespace string) *TestExecutionsClient
NewClient returns new client instance, needs kubernetes client to be passed as dependecy
func (TestExecutionsClient) Create ¶
func (s TestExecutionsClient) Create(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error)
Create creates new test execution CRD
func (TestExecutionsClient) Delete ¶
func (s TestExecutionsClient) Delete(name string) error
Delete deletes test execution by name
func (TestExecutionsClient) Get ¶
func (s TestExecutionsClient) Get(name string) (*testexecutionv1.TestExecution, error)
Get gets test execution by name in given namespace
func (TestExecutionsClient) Update ¶
func (s TestExecutionsClient) Update(testExecution *testexecutionv1.TestExecution) (*testexecutionv1.TestExecution, error)
Update updates test execution
func (TestExecutionsClient) UpdateStatus ¶
func (s TestExecutionsClient) UpdateStatus(testExecution *testexecutionv1.TestExecution) error
UpdateStatus updates existing test execution status