Documentation ¶
Index ¶
- type FakeMonitClient
- func (c *FakeMonitClient) ServicesInGroup(name string) ([]string, error)
- func (c *FakeMonitClient) StartService(name string) error
- func (c *FakeMonitClient) Status() (boshmonit.Status, error)
- func (c *FakeMonitClient) StopService(name string) error
- func (c *FakeMonitClient) UnmonitorService(name string) error
- type FakeMonitStatus
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) StopService ¶
func (c *FakeMonitClient) StopService(name string) error
func (*FakeMonitClient) UnmonitorService ¶
func (c *FakeMonitClient) UnmonitorService(name string) error
type FakeMonitStatus ¶
func (FakeMonitStatus) GetIncarnation ¶
func (s FakeMonitStatus) GetIncarnation() (int, error)
func (FakeMonitStatus) ServicesInGroup ¶
func (s FakeMonitStatus) ServicesInGroup(name string) (services []boshmonit.Service)
Click to show internal directories.
Click to hide internal directories.