mocks

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func NewServer added in v0.6.0

func NewServer(t mockConstructorTestingTNewServer) *Server

NewServer creates a new instance of Server. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Server) Config

func (_m *Server) Config() config.Config

Config provides a mock function with given fields:

func (*Server) Events

func (_m *Server) Events(ctx context.Context, taskName string) (map[string][]event.Event, error)

Events provides a mock function with given fields: ctx, taskName

func (*Server) Task

func (_m *Server) Task(ctx context.Context, taskName string) (config.TaskConfig, error)

Task provides a mock function with given fields: ctx, taskName

func (*Server) TaskCreate

func (_m *Server) TaskCreate(_a0 context.Context, _a1 config.TaskConfig) (config.TaskConfig, error)

TaskCreate provides a mock function with given fields: _a0, _a1

func (*Server) TaskCreateAndRun

func (_m *Server) TaskCreateAndRun(_a0 context.Context, _a1 config.TaskConfig) (config.TaskConfig, error)

TaskCreateAndRun provides a mock function with given fields: _a0, _a1

func (*Server) TaskDelete

func (_m *Server) TaskDelete(ctx context.Context, taskName string) error

TaskDelete provides a mock function with given fields: ctx, taskName

func (*Server) TaskInspect

func (_m *Server) TaskInspect(_a0 context.Context, _a1 config.TaskConfig) (bool, string, string, error)

TaskInspect provides a mock function with given fields: _a0, _a1

func (*Server) TaskUpdate

func (_m *Server) TaskUpdate(ctx context.Context, updateConf config.TaskConfig, runOp string) (bool, string, string, error)

TaskUpdate provides a mock function with given fields: ctx, updateConf, runOp

func (*Server) Tasks

func (_m *Server) Tasks(_a0 context.Context) config.TaskConfigs

Tasks provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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