fakes

package
v2.1.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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 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