fakes

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 2 Imported by: ? 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 AddJobArgs

type AddJobArgs struct {
	Name       string
	Index      int
	ConfigPath string
}

type FakeJobSupervisor

type FakeJobSupervisor struct {
	Reloaded  bool
	ReloadErr error

	AddJobArgs []AddJobArgs

	RemovedAllJobs    bool
	RemovedAllJobsErr error

	Started  bool
	StartErr error

	Stopped          bool
	StopErr          error
	StoppedAndWaited bool

	Unmonitored  bool
	UnmonitorErr error

	StatusStatus    string
	ProcessesStatus []boshjobsuper.Process
	ProcessesError  error

	JobFailureAlert *boshalert.MonitAlert
}

func NewFakeJobSupervisor

func NewFakeJobSupervisor() *FakeJobSupervisor

func (*FakeJobSupervisor) AddJob

func (m *FakeJobSupervisor) AddJob(jobName string, jobIndex int, configPath string) error

func (*FakeJobSupervisor) MonitorJobFailures

func (m *FakeJobSupervisor) MonitorJobFailures(handler boshjobsuper.JobFailureHandler) error

func (*FakeJobSupervisor) Processes

func (m *FakeJobSupervisor) Processes() ([]boshjobsuper.Process, error)

func (*FakeJobSupervisor) Reload

func (m *FakeJobSupervisor) Reload() error

func (*FakeJobSupervisor) RemoveAllJobs

func (m *FakeJobSupervisor) RemoveAllJobs() error

func (*FakeJobSupervisor) Start

func (m *FakeJobSupervisor) Start() error

func (*FakeJobSupervisor) Status

func (m *FakeJobSupervisor) Status() string

func (*FakeJobSupervisor) Stop

func (m *FakeJobSupervisor) Stop() error

func (*FakeJobSupervisor) StopAndWait

func (m *FakeJobSupervisor) StopAndWait() error

func (*FakeJobSupervisor) Unmonitor

func (m *FakeJobSupervisor) Unmonitor() error

Jump to

Keyboard shortcuts

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