mocks

package
v0.0.0-...-91efec1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 APIController

type APIController struct {
	mock.Mock
}

APIController is an autogenerated mock type for the APIController type

func (*APIController) CreateRetention

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

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

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

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

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

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

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

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

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

UpdateRetention provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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