fakes

package
v2.929.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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