fakes

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

func (m *FakeManager) AddInfo(taskInfo boshtask.Info) error

func (*FakeManager) GetInfos

func (m *FakeManager) GetInfos() ([]boshtask.Info, error)

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)

Jump to

Keyboard shortcuts

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