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