Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) CreatePolicy(ctx context.Context, policy *model.Policy) (int64, error)
- func (_m *Controller) DeletePolicy(ctx context.Context, id int64) error
- func (_m *Controller) ExecutionCount(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) GetExecution(ctx context.Context, executionID int64) (*replication.Execution, error)
- func (_m *Controller) GetPolicy(ctx context.Context, id int64) (*model.Policy, error)
- func (_m *Controller) GetTask(ctx context.Context, taskID int64) (*replication.Task, error)
- func (_m *Controller) GetTaskLog(ctx context.Context, taskID int64) ([]byte, error)
- func (_m *Controller) ListExecutions(ctx context.Context, query *q.Query) ([]*replication.Execution, error)
- func (_m *Controller) ListPolicies(ctx context.Context, query *q.Query) ([]*model.Policy, error)
- func (_m *Controller) ListTasks(ctx context.Context, query *q.Query) ([]*replication.Task, error)
- func (_m *Controller) PolicyCount(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Start(ctx context.Context, policy *model.Policy, resource *regmodel.Resource, ...) (int64, error)
- func (_m *Controller) Stop(ctx context.Context, executionID int64) error
- func (_m *Controller) TaskCount(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, props ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. 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 (*Controller) CreatePolicy ¶
CreatePolicy provides a mock function with given fields: ctx, policy
func (*Controller) DeletePolicy ¶
func (_m *Controller) DeletePolicy(ctx context.Context, id int64) error
DeletePolicy provides a mock function with given fields: ctx, id
func (*Controller) ExecutionCount ¶
ExecutionCount provides a mock function with given fields: ctx, query
func (*Controller) GetExecution ¶
func (_m *Controller) GetExecution(ctx context.Context, executionID int64) (*replication.Execution, error)
GetExecution provides a mock function with given fields: ctx, executionID
func (*Controller) GetTask ¶
func (_m *Controller) GetTask(ctx context.Context, taskID int64) (*replication.Task, error)
GetTask provides a mock function with given fields: ctx, taskID
func (*Controller) GetTaskLog ¶
GetTaskLog provides a mock function with given fields: ctx, taskID
func (*Controller) ListExecutions ¶
func (_m *Controller) ListExecutions(ctx context.Context, query *q.Query) ([]*replication.Execution, error)
ListExecutions provides a mock function with given fields: ctx, query
func (*Controller) ListPolicies ¶
ListPolicies provides a mock function with given fields: ctx, query
func (*Controller) ListTasks ¶
func (_m *Controller) ListTasks(ctx context.Context, query *q.Query) ([]*replication.Task, error)
ListTasks provides a mock function with given fields: ctx, query
func (*Controller) PolicyCount ¶
PolicyCount provides a mock function with given fields: ctx, query
func (*Controller) Start ¶
func (_m *Controller) Start(ctx context.Context, policy *model.Policy, resource *regmodel.Resource, trigger string) (int64, error)
Start provides a mock function with given fields: ctx, policy, resource, trigger
func (*Controller) Stop ¶
func (_m *Controller) Stop(ctx context.Context, executionID int64) error
Stop provides a mock function with given fields: ctx, executionID
func (*Controller) UpdatePolicy ¶
func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, props ...string) error
UpdatePolicy provides a mock function with given fields: ctx, policy, props