webhook

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) CountExecutions

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

CountExecutions provides a mock function with given fields: ctx, policyID, query

func (*Controller) CountPolicies

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

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

func (*Controller) CountTasks

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

CountTasks provides a mock function with given fields: ctx, execID, query

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, policyID int64) error

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

func (*Controller) GetLastTriggerTime

func (_m *Controller) GetLastTriggerTime(ctx context.Context, eventType string, policyID int64) (time.Time, error)

GetLastTriggerTime provides a mock function with given fields: ctx, eventType, policyID

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) GetRelatedPolices

func (_m *Controller) GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error)

GetRelatedPolices provides a mock function with given fields: ctx, projectID, eventType

func (*Controller) GetTask

func (_m *Controller) GetTask(ctx context.Context, taskID int64) (*task.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, policyID int64, query *q.Query) ([]*task.Execution, error)

ListExecutions provides a mock function with given fields: ctx, policyID, 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, execID int64, query *q.Query) ([]*task.Task, error)

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

func (*Controller) UpdatePolicy

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

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

Jump to

Keyboard shortcuts

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