Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) CountExecutions(ctx context.Context, policyID int64, query *q.Query) (int64, error)
- func (_m *Controller) CountPolicies(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) CountTasks(ctx context.Context, execID int64, query *q.Query) (int64, error)
- func (_m *Controller) CreatePolicy(ctx context.Context, policy *model.Policy) (int64, error)
- func (_m *Controller) DeletePolicy(ctx context.Context, policyID int64) error
- func (_m *Controller) GetLastTriggerTime(ctx context.Context, eventType string, policyID int64) (time.Time, error)
- func (_m *Controller) GetPolicy(ctx context.Context, id int64) (*model.Policy, error)
- func (_m *Controller) GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error)
- func (_m *Controller) GetTask(ctx context.Context, taskID int64) (*task.Task, error)
- func (_m *Controller) GetTaskLog(ctx context.Context, taskID int64) ([]byte, error)
- func (_m *Controller) ListExecutions(ctx context.Context, policyID int64, query *q.Query) ([]*task.Execution, error)
- func (_m *Controller) ListPolicies(ctx context.Context, query *q.Query) ([]*model.Policy, error)
- func (_m *Controller) ListTasks(ctx context.Context, execID int64, query *q.Query) ([]*task.Task, error)
- func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy) 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) CountExecutions ¶
func (_m *Controller) CountExecutions(ctx context.Context, policyID int64, query *q.Query) (int64, error)
CountExecutions provides a mock function with given fields: ctx, policyID, query
func (*Controller) CountPolicies ¶
CountPolicies provides a mock function with given fields: ctx, query
func (*Controller) CountTasks ¶
CountTasks provides a mock function with given fields: ctx, execID, query
func (*Controller) CreatePolicy ¶
CreatePolicy provides a mock function with given fields: ctx, policy
func (*Controller) DeletePolicy ¶
func (_m *Controller) DeletePolicy(ctx context.Context, policyID int64) error
DeletePolicy provides a mock function with given fields: ctx, policyID
func (*Controller) GetLastTriggerTime ¶
func (_m *Controller) GetLastTriggerTime(ctx context.Context, eventType string, policyID int64) (time.Time, error)
GetLastTriggerTime provides a mock function with given fields: ctx, eventType, policyID
func (*Controller) GetRelatedPolices ¶
func (_m *Controller) GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error)
GetRelatedPolices provides a mock function with given fields: ctx, projectID, eventType
func (*Controller) GetTaskLog ¶
GetTaskLog provides a mock function with given fields: ctx, taskID
func (*Controller) ListExecutions ¶
func (_m *Controller) ListExecutions(ctx context.Context, policyID int64, query *q.Query) ([]*task.Execution, error)
ListExecutions provides a mock function with given fields: ctx, policyID, query
func (*Controller) ListPolicies ¶
ListPolicies provides a mock function with given fields: ctx, query
func (*Controller) ListTasks ¶
func (_m *Controller) ListTasks(ctx context.Context, execID int64, query *q.Query) ([]*task.Task, error)
ListTasks provides a mock function with given fields: ctx, execID, query
func (*Controller) UpdatePolicy ¶
UpdatePolicy provides a mock function with given fields: ctx, policy