Documentation ¶
Index ¶
- type FakeManager
- type FakeService
- func (s *FakeService) CreateTask(taskFunc boshtask.Func, cancelFunc boshtask.CancelFunc, ...) (boshtask.Task, error)
- func (s *FakeService) CreateTaskWithID(id string, taskFunc boshtask.Func, cancelFunc boshtask.CancelFunc, ...) boshtask.Task
- func (s *FakeService) FindTaskWithID(id string) (boshtask.Task, bool)
- func (s *FakeService) StartTask(task boshtask.Task)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeManager ¶
type FakeManager struct { AddInfoErr error // contains filtered or unexported fields }
func NewFakeManager ¶
func NewFakeManager() *FakeManager
func (*FakeManager) RemoveInfo ¶
func (m *FakeManager) RemoveInfo(taskID string) error
type FakeService ¶
type FakeService struct { StartedTasks map[string]boshtask.Task CreateTaskErr error CreateTaskWithIDErr error }
func NewFakeService ¶
func NewFakeService() *FakeService
func (*FakeService) CreateTask ¶
func (s *FakeService) CreateTask( taskFunc boshtask.Func, cancelFunc boshtask.CancelFunc, endFunc boshtask.EndFunc, ) (boshtask.Task, error)
func (*FakeService) CreateTaskWithID ¶
func (s *FakeService) CreateTaskWithID( id string, taskFunc boshtask.Func, cancelFunc boshtask.CancelFunc, endFunc boshtask.EndFunc, ) boshtask.Task
func (*FakeService) FindTaskWithID ¶
func (s *FakeService) FindTaskWithID(id string) (boshtask.Task, bool)
func (*FakeService) StartTask ¶
func (s *FakeService) StartTask(task boshtask.Task)
Click to show internal directories.
Click to hide internal directories.