fakes

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: Apache-2.0 Imports: 1 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 FakeMonitClient

type FakeMonitClient struct {
	ServicesInGroupName     string
	ServicesInGroupServices []string
	ServicesInGroupErr      error

	StartServiceNames []string
	StartServiceErr   error

	StopServiceNames []string
	StopServiceErr   error

	UnmonitorServiceNames []string
	UnmonitorServiceErrs  []error

	StatusStatus FakeMonitStatus
	StatusErr    error

	Incarnations      []int
	StatusCalledTimes int
}

func NewFakeMonitClient

func NewFakeMonitClient() *FakeMonitClient

func (*FakeMonitClient) ServicesInGroup

func (c *FakeMonitClient) ServicesInGroup(name string) ([]string, error)

func (*FakeMonitClient) StartService

func (c *FakeMonitClient) StartService(name string) error

func (*FakeMonitClient) Status

func (c *FakeMonitClient) Status() (boshmonit.Status, error)

func (*FakeMonitClient) StopService

func (c *FakeMonitClient) StopService(name string) error

func (*FakeMonitClient) UnmonitorService

func (c *FakeMonitClient) UnmonitorService(name string) error

type FakeMonitStatus

type FakeMonitStatus struct {
	Incarnation int
	Services    []boshmonit.Service
}

func (FakeMonitStatus) GetIncarnation

func (s FakeMonitStatus) GetIncarnation() (int, error)

func (FakeMonitStatus) ServicesInGroup

func (s FakeMonitStatus) ServicesInGroup(name string) (services []boshmonit.Service)

Jump to

Keyboard shortcuts

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