Documentation ¶
Index ¶
- type ChaosExperimentService
- func (_m *ChaosExperimentService) EXPECT() *ChaosExperimentService_Expecter
- func (_m *ChaosExperimentService) ProcessExperiment(ctx context.Context, workflow *model.ChaosExperimentRequest, projectID string, ...) (*model.ChaosExperimentRequest, *chaos_experiment.ChaosExperimentType, error)
- func (_m *ChaosExperimentService) ProcessExperimentCreation(ctx context.Context, input *model.ChaosExperimentRequest, username string, ...) error
- func (_m *ChaosExperimentService) ProcessExperimentDelete(query primitive.D, workflow chaos_experiment.ChaosExperimentRequest, ...) error
- func (_m *ChaosExperimentService) ProcessExperimentUpdate(workflow *model.ChaosExperimentRequest, username string, ...) error
- func (_m *ChaosExperimentService) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest v1alpha1.CronWorkflow, ...) (v1alpha1.CronWorkflow, []string, error)
- type ChaosExperimentService_Expecter
- func (_e *ChaosExperimentService_Expecter) ProcessExperiment(ctx interface{}, workflow interface{}, projectID interface{}, ...) *ChaosExperimentService_ProcessExperiment_Call
- func (_e *ChaosExperimentService_Expecter) ProcessExperimentCreation(ctx interface{}, input interface{}, username interface{}, ...) *ChaosExperimentService_ProcessExperimentCreation_Call
- func (_e *ChaosExperimentService_Expecter) ProcessExperimentDelete(query interface{}, workflow interface{}, username interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentDelete_Call
- func (_e *ChaosExperimentService_Expecter) ProcessExperimentUpdate(workflow interface{}, username interface{}, wfType interface{}, ...) *ChaosExperimentService_ProcessExperimentUpdate_Call
- func (_e *ChaosExperimentService_Expecter) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest interface{}, experiment interface{}) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
- type ChaosExperimentService_ProcessExperimentCreation_Call
- func (_c *ChaosExperimentService_ProcessExperimentCreation_Call) Return(_a0 error) *ChaosExperimentService_ProcessExperimentCreation_Call
- func (_c *ChaosExperimentService_ProcessExperimentCreation_Call) Run(...) *ChaosExperimentService_ProcessExperimentCreation_Call
- func (_c *ChaosExperimentService_ProcessExperimentCreation_Call) RunAndReturn(...) *ChaosExperimentService_ProcessExperimentCreation_Call
- type ChaosExperimentService_ProcessExperimentDelete_Call
- func (_c *ChaosExperimentService_ProcessExperimentDelete_Call) Return(_a0 error) *ChaosExperimentService_ProcessExperimentDelete_Call
- func (_c *ChaosExperimentService_ProcessExperimentDelete_Call) Run(...) *ChaosExperimentService_ProcessExperimentDelete_Call
- func (_c *ChaosExperimentService_ProcessExperimentDelete_Call) RunAndReturn(...) *ChaosExperimentService_ProcessExperimentDelete_Call
- type ChaosExperimentService_ProcessExperimentUpdate_Call
- func (_c *ChaosExperimentService_ProcessExperimentUpdate_Call) Return(_a0 error) *ChaosExperimentService_ProcessExperimentUpdate_Call
- func (_c *ChaosExperimentService_ProcessExperimentUpdate_Call) Run(run func(workflow *model.ChaosExperimentRequest, username string, ...)) *ChaosExperimentService_ProcessExperimentUpdate_Call
- func (_c *ChaosExperimentService_ProcessExperimentUpdate_Call) RunAndReturn(...) *ChaosExperimentService_ProcessExperimentUpdate_Call
- type ChaosExperimentService_ProcessExperiment_Call
- func (_c *ChaosExperimentService_ProcessExperiment_Call) Return(_a0 *model.ChaosExperimentRequest, _a1 *chaos_experiment.ChaosExperimentType, ...) *ChaosExperimentService_ProcessExperiment_Call
- func (_c *ChaosExperimentService_ProcessExperiment_Call) Run(...) *ChaosExperimentService_ProcessExperiment_Call
- func (_c *ChaosExperimentService_ProcessExperiment_Call) RunAndReturn(...) *ChaosExperimentService_ProcessExperiment_Call
- type ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
- func (_c *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Return(_a0 v1alpha1.CronWorkflow, _a1 []string, _a2 error) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
- func (_c *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Run(run func(cronWorkflowManifest v1alpha1.CronWorkflow, ...)) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
- func (_c *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) RunAndReturn(...) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaosExperimentService ¶
ChaosExperimentService is an autogenerated mock type for the Service type
func NewChaosExperimentService ¶
func NewChaosExperimentService(t interface { mock.TestingT Cleanup(func()) }) *ChaosExperimentService
NewChaosExperimentService creates a new instance of ChaosExperimentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChaosExperimentService) EXPECT ¶
func (_m *ChaosExperimentService) EXPECT() *ChaosExperimentService_Expecter
func (*ChaosExperimentService) ProcessExperiment ¶
func (_m *ChaosExperimentService) ProcessExperiment(ctx context.Context, workflow *model.ChaosExperimentRequest, projectID string, revID string) (*model.ChaosExperimentRequest, *chaos_experiment.ChaosExperimentType, error)
ProcessExperiment provides a mock function with given fields: ctx, workflow, projectID, revID
func (*ChaosExperimentService) ProcessExperimentCreation ¶
func (_m *ChaosExperimentService) ProcessExperimentCreation(ctx context.Context, input *model.ChaosExperimentRequest, username string, projectID string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, r *data_store.StateData) error
ProcessExperimentCreation provides a mock function with given fields: ctx, input, username, projectID, wfType, revisionID, r
func (*ChaosExperimentService) ProcessExperimentDelete ¶
func (_m *ChaosExperimentService) ProcessExperimentDelete(query primitive.D, workflow chaos_experiment.ChaosExperimentRequest, username string, r *data_store.StateData) error
ProcessExperimentDelete provides a mock function with given fields: query, workflow, username, r
func (*ChaosExperimentService) ProcessExperimentUpdate ¶
func (_m *ChaosExperimentService) ProcessExperimentUpdate(workflow *model.ChaosExperimentRequest, username string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, updateRevision bool, projectID string, r *data_store.StateData) error
ProcessExperimentUpdate provides a mock function with given fields: workflow, username, wfType, revisionID, updateRevision, projectID, r
func (*ChaosExperimentService) UpdateRuntimeCronWorkflowConfiguration ¶
func (_m *ChaosExperimentService) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest v1alpha1.CronWorkflow, experiment chaos_experiment.ChaosExperimentRequest) (v1alpha1.CronWorkflow, []string, error)
UpdateRuntimeCronWorkflowConfiguration provides a mock function with given fields: cronWorkflowManifest, experiment
type ChaosExperimentService_Expecter ¶
type ChaosExperimentService_Expecter struct {
// contains filtered or unexported fields
}
func (*ChaosExperimentService_Expecter) ProcessExperiment ¶
func (_e *ChaosExperimentService_Expecter) ProcessExperiment(ctx interface{}, workflow interface{}, projectID interface{}, revID interface{}) *ChaosExperimentService_ProcessExperiment_Call
ProcessExperiment is a helper method to define mock.On call
- ctx context.Context
- workflow *model.ChaosExperimentRequest
- projectID string
- revID string
func (*ChaosExperimentService_Expecter) ProcessExperimentCreation ¶
func (_e *ChaosExperimentService_Expecter) ProcessExperimentCreation(ctx interface{}, input interface{}, username interface{}, projectID interface{}, wfType interface{}, revisionID interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentCreation_Call
ProcessExperimentCreation is a helper method to define mock.On call
- ctx context.Context
- input *model.ChaosExperimentRequest
- username string
- projectID string
- wfType *chaos_experiment.ChaosExperimentType
- revisionID string
- r *data_store.StateData
func (*ChaosExperimentService_Expecter) ProcessExperimentDelete ¶
func (_e *ChaosExperimentService_Expecter) ProcessExperimentDelete(query interface{}, workflow interface{}, username interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentDelete_Call
ProcessExperimentDelete is a helper method to define mock.On call
- query primitive.D
- workflow chaos_experiment.ChaosExperimentRequest
- username string
- r *data_store.StateData
func (*ChaosExperimentService_Expecter) ProcessExperimentUpdate ¶
func (_e *ChaosExperimentService_Expecter) ProcessExperimentUpdate(workflow interface{}, username interface{}, wfType interface{}, revisionID interface{}, updateRevision interface{}, projectID interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentUpdate_Call
ProcessExperimentUpdate is a helper method to define mock.On call
- workflow *model.ChaosExperimentRequest
- username string
- wfType *chaos_experiment.ChaosExperimentType
- revisionID string
- updateRevision bool
- projectID string
- r *data_store.StateData
func (*ChaosExperimentService_Expecter) UpdateRuntimeCronWorkflowConfiguration ¶
func (_e *ChaosExperimentService_Expecter) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest interface{}, experiment interface{}) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
UpdateRuntimeCronWorkflowConfiguration is a helper method to define mock.On call
- cronWorkflowManifest v1alpha1.CronWorkflow
- experiment chaos_experiment.ChaosExperimentRequest
type ChaosExperimentService_ProcessExperimentCreation_Call ¶
ChaosExperimentService_ProcessExperimentCreation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessExperimentCreation'
func (*ChaosExperimentService_ProcessExperimentCreation_Call) Run ¶
func (_c *ChaosExperimentService_ProcessExperimentCreation_Call) Run(run func(ctx context.Context, input *model.ChaosExperimentRequest, username string, projectID string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, r *data_store.StateData)) *ChaosExperimentService_ProcessExperimentCreation_Call
func (*ChaosExperimentService_ProcessExperimentCreation_Call) RunAndReturn ¶
func (_c *ChaosExperimentService_ProcessExperimentCreation_Call) RunAndReturn(run func(context.Context, *model.ChaosExperimentRequest, string, string, *chaos_experiment.ChaosExperimentType, string, *data_store.StateData) error) *ChaosExperimentService_ProcessExperimentCreation_Call
type ChaosExperimentService_ProcessExperimentDelete_Call ¶
ChaosExperimentService_ProcessExperimentDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessExperimentDelete'
func (*ChaosExperimentService_ProcessExperimentDelete_Call) Run ¶
func (_c *ChaosExperimentService_ProcessExperimentDelete_Call) Run(run func(query primitive.D, workflow chaos_experiment.ChaosExperimentRequest, username string, r *data_store.StateData)) *ChaosExperimentService_ProcessExperimentDelete_Call
func (*ChaosExperimentService_ProcessExperimentDelete_Call) RunAndReturn ¶
func (_c *ChaosExperimentService_ProcessExperimentDelete_Call) RunAndReturn(run func(primitive.D, chaos_experiment.ChaosExperimentRequest, string, *data_store.StateData) error) *ChaosExperimentService_ProcessExperimentDelete_Call
type ChaosExperimentService_ProcessExperimentUpdate_Call ¶
ChaosExperimentService_ProcessExperimentUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessExperimentUpdate'
func (*ChaosExperimentService_ProcessExperimentUpdate_Call) Run ¶
func (_c *ChaosExperimentService_ProcessExperimentUpdate_Call) Run(run func(workflow *model.ChaosExperimentRequest, username string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, updateRevision bool, projectID string, r *data_store.StateData)) *ChaosExperimentService_ProcessExperimentUpdate_Call
func (*ChaosExperimentService_ProcessExperimentUpdate_Call) RunAndReturn ¶
func (_c *ChaosExperimentService_ProcessExperimentUpdate_Call) RunAndReturn(run func(*model.ChaosExperimentRequest, string, *chaos_experiment.ChaosExperimentType, string, bool, string, *data_store.StateData) error) *ChaosExperimentService_ProcessExperimentUpdate_Call
type ChaosExperimentService_ProcessExperiment_Call ¶
ChaosExperimentService_ProcessExperiment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessExperiment'
func (*ChaosExperimentService_ProcessExperiment_Call) Return ¶
func (_c *ChaosExperimentService_ProcessExperiment_Call) Return(_a0 *model.ChaosExperimentRequest, _a1 *chaos_experiment.ChaosExperimentType, _a2 error) *ChaosExperimentService_ProcessExperiment_Call
func (*ChaosExperimentService_ProcessExperiment_Call) Run ¶
func (_c *ChaosExperimentService_ProcessExperiment_Call) Run(run func(ctx context.Context, workflow *model.ChaosExperimentRequest, projectID string, revID string)) *ChaosExperimentService_ProcessExperiment_Call
func (*ChaosExperimentService_ProcessExperiment_Call) RunAndReturn ¶
func (_c *ChaosExperimentService_ProcessExperiment_Call) RunAndReturn(run func(context.Context, *model.ChaosExperimentRequest, string, string) (*model.ChaosExperimentRequest, *chaos_experiment.ChaosExperimentType, error)) *ChaosExperimentService_ProcessExperiment_Call
type ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call ¶
ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeCronWorkflowConfiguration'
func (*ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Return ¶
func (_c *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Return(_a0 v1alpha1.CronWorkflow, _a1 []string, _a2 error) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call
func (*ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Run ¶
func (_c *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Run(run func(cronWorkflowManifest v1alpha1.CronWorkflow, experiment chaos_experiment.ChaosExperimentRequest)) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call