Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) CreateRetention(ctx context.Context, p *policy.Metadata) (int64, error)
- func (_m *Controller) DeleteRetention(ctx context.Context, id int64) error
- func (_m *Controller) DeleteRetentionByProject(ctx context.Context, projectID int64) error
- func (_m *Controller) GetRetention(ctx context.Context, id int64) (*policy.Metadata, error)
- func (_m *Controller) GetRetentionExec(ctx context.Context, eid int64) (*pkgretention.Execution, error)
- func (_m *Controller) GetRetentionExecTask(ctx context.Context, taskID int64) (*pkgretention.Task, error)
- func (_m *Controller) GetRetentionExecTaskLog(ctx context.Context, taskID int64) ([]byte, error)
- func (_m *Controller) GetTotalOfRetentionExecTasks(ctx context.Context, executionID int64) (int64, error)
- func (_m *Controller) GetTotalOfRetentionExecs(ctx context.Context, policyID int64) (int64, error)
- func (_m *Controller) ListRetentionExecTasks(ctx context.Context, executionID int64, query *q.Query) ([]*pkgretention.Task, error)
- func (_m *Controller) ListRetentionExecs(ctx context.Context, policyID int64, query *q.Query) ([]*pkgretention.Execution, error)
- func (_m *Controller) OperateRetentionExec(ctx context.Context, eid int64, action string) error
- func (_m *Controller) TriggerRetentionExec(ctx context.Context, policyID int64, trigger string, dryRun bool) (int64, error)
- func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) 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) CreateRetention ¶
CreateRetention provides a mock function with given fields: ctx, p
func (*Controller) DeleteRetention ¶
func (_m *Controller) DeleteRetention(ctx context.Context, id int64) error
DeleteRetention provides a mock function with given fields: ctx, id
func (*Controller) DeleteRetentionByProject ¶
func (_m *Controller) DeleteRetentionByProject(ctx context.Context, projectID int64) error
DeleteRetentionByProject provides a mock function with given fields: ctx, projectID
func (*Controller) GetRetention ¶
GetRetention provides a mock function with given fields: ctx, id
func (*Controller) GetRetentionExec ¶
func (_m *Controller) GetRetentionExec(ctx context.Context, eid int64) (*pkgretention.Execution, error)
GetRetentionExec provides a mock function with given fields: ctx, eid
func (*Controller) GetRetentionExecTask ¶
func (_m *Controller) GetRetentionExecTask(ctx context.Context, taskID int64) (*pkgretention.Task, error)
GetRetentionExecTask provides a mock function with given fields: ctx, taskID
func (*Controller) GetRetentionExecTaskLog ¶
GetRetentionExecTaskLog provides a mock function with given fields: ctx, taskID
func (*Controller) GetTotalOfRetentionExecTasks ¶
func (_m *Controller) GetTotalOfRetentionExecTasks(ctx context.Context, executionID int64) (int64, error)
GetTotalOfRetentionExecTasks provides a mock function with given fields: ctx, executionID
func (*Controller) GetTotalOfRetentionExecs ¶
GetTotalOfRetentionExecs provides a mock function with given fields: ctx, policyID
func (*Controller) ListRetentionExecTasks ¶
func (_m *Controller) ListRetentionExecTasks(ctx context.Context, executionID int64, query *q.Query) ([]*pkgretention.Task, error)
ListRetentionExecTasks provides a mock function with given fields: ctx, executionID, query
func (*Controller) ListRetentionExecs ¶
func (_m *Controller) ListRetentionExecs(ctx context.Context, policyID int64, query *q.Query) ([]*pkgretention.Execution, error)
ListRetentionExecs provides a mock function with given fields: ctx, policyID, query
func (*Controller) OperateRetentionExec ¶
OperateRetentionExec provides a mock function with given fields: ctx, eid, action
func (*Controller) TriggerRetentionExec ¶
func (_m *Controller) TriggerRetentionExec(ctx context.Context, policyID int64, trigger string, dryRun bool) (int64, error)
TriggerRetentionExec provides a mock function with given fields: ctx, policyID, trigger, dryRun
func (*Controller) UpdateRetention ¶
UpdateRetention provides a mock function with given fields: ctx, p