retention

package
v0.0.0-...-e417875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

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

func (_m *Controller) CreateRetention(ctx context.Context, p *policy.Metadata) (int64, error)

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

func (_m *Controller) GetRetention(ctx context.Context, id int64) (*policy.Metadata, error)

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

func (_m *Controller) GetRetentionExecTaskLog(ctx context.Context, taskID int64) ([]byte, error)

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

func (_m *Controller) GetTotalOfRetentionExecs(ctx context.Context, policyID int64) (int64, error)

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

func (_m *Controller) OperateRetentionExec(ctx context.Context, eid int64, action string) error

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

func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) error

UpdateRetention provides a mock function with given fields: ctx, p

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL