replication

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 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) CreatePolicy

func (_m *Controller) CreatePolicy(ctx context.Context, policy *model.Policy) (int64, error)

CreatePolicy provides a mock function with given fields: ctx, policy

func (*Controller) DeletePolicy

func (_m *Controller) DeletePolicy(ctx context.Context, id int64) error

DeletePolicy provides a mock function with given fields: ctx, id

func (*Controller) ExecutionCount

func (_m *Controller) ExecutionCount(ctx context.Context, query *q.Query) (int64, error)

ExecutionCount provides a mock function with given fields: ctx, query

func (*Controller) GetExecution

func (_m *Controller) GetExecution(ctx context.Context, executionID int64) (*replication.Execution, error)

GetExecution provides a mock function with given fields: ctx, executionID

func (*Controller) GetPolicy

func (_m *Controller) GetPolicy(ctx context.Context, id int64) (*model.Policy, error)

GetPolicy provides a mock function with given fields: ctx, id

func (*Controller) GetTask

func (_m *Controller) GetTask(ctx context.Context, taskID int64) (*replication.Task, error)

GetTask provides a mock function with given fields: ctx, taskID

func (*Controller) GetTaskLog

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

GetTaskLog provides a mock function with given fields: ctx, taskID

func (*Controller) ListExecutions

func (_m *Controller) ListExecutions(ctx context.Context, query *q.Query) ([]*replication.Execution, error)

ListExecutions provides a mock function with given fields: ctx, query

func (*Controller) ListPolicies

func (_m *Controller) ListPolicies(ctx context.Context, query *q.Query) ([]*model.Policy, error)

ListPolicies provides a mock function with given fields: ctx, query

func (*Controller) ListTasks

func (_m *Controller) ListTasks(ctx context.Context, query *q.Query) ([]*replication.Task, error)

ListTasks provides a mock function with given fields: ctx, query

func (*Controller) PolicyCount

func (_m *Controller) PolicyCount(ctx context.Context, query *q.Query) (int64, error)

PolicyCount provides a mock function with given fields: ctx, query

func (*Controller) Start

func (_m *Controller) Start(ctx context.Context, policy *model.Policy, resource *regmodel.Resource, trigger string) (int64, error)

Start provides a mock function with given fields: ctx, policy, resource, trigger

func (*Controller) Stop

func (_m *Controller) Stop(ctx context.Context, executionID int64) error

Stop provides a mock function with given fields: ctx, executionID

func (*Controller) TaskCount

func (_m *Controller) TaskCount(ctx context.Context, query *q.Query) (int64, error)

TaskCount provides a mock function with given fields: ctx, query

func (*Controller) UpdatePolicy

func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, props ...string) error

UpdatePolicy provides a mock function with given fields: ctx, policy, props

Jump to

Keyboard shortcuts

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