Documentation
¶
Index ¶
- type Server
- func (_m *Server) Config() config.Config
- func (_m *Server) Events(ctx context.Context, taskName string) (map[string][]event.Event, error)
- func (_m *Server) Task(ctx context.Context, taskName string) (config.TaskConfig, error)
- func (_m *Server) TaskCreate(_a0 context.Context, _a1 config.TaskConfig) (config.TaskConfig, error)
- func (_m *Server) TaskCreateAndRun(_a0 context.Context, _a1 config.TaskConfig) (config.TaskConfig, error)
- func (_m *Server) TaskDelete(ctx context.Context, taskName string) error
- func (_m *Server) TaskInspect(_a0 context.Context, _a1 config.TaskConfig) (bool, string, string, error)
- func (_m *Server) TaskUpdate(ctx context.Context, updateConf config.TaskConfig, runOp string) (bool, string, string, error)
- func (_m *Server) Tasks(_a0 context.Context) config.TaskConfigs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
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) 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 ¶
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
Click to show internal directories.
Click to hide internal directories.