fakes

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAgentClient

type FakeAgentClient struct {
	PingResponses   []pingResponse
	PingCalledCount int

	StopCalled bool

	ApplyApplySpec bmas.ApplySpec
	ApplyErr       error

	StartCalled bool

	GetStateCalledTimes int
	// contains filtered or unexported fields
}

func NewFakeAgentClient

func NewFakeAgentClient() *FakeAgentClient

func (*FakeAgentClient) Apply

func (c *FakeAgentClient) Apply(applySpec bmas.ApplySpec) error

func (*FakeAgentClient) GetState

func (c *FakeAgentClient) GetState() (bmagentclient.State, error)

func (*FakeAgentClient) Ping

func (c *FakeAgentClient) Ping() (string, error)

func (*FakeAgentClient) SetGetStateBehavior

func (c *FakeAgentClient) SetGetStateBehavior(stateResponse bmagentclient.State, err error)

func (*FakeAgentClient) SetPingBehavior

func (c *FakeAgentClient) SetPingBehavior(response string, err error)

func (*FakeAgentClient) SetStartBehavior

func (c *FakeAgentClient) SetStartBehavior(err error)

func (*FakeAgentClient) SetStopBehavior

func (c *FakeAgentClient) SetStopBehavior(err error)

func (*FakeAgentClient) Start

func (c *FakeAgentClient) Start() error

func (*FakeAgentClient) Stop

func (c *FakeAgentClient) Stop() error

type FakeAgentClientFactory

type FakeAgentClientFactory struct {
	CreateAgentClient bmagentclient.AgentClient
	CreateMbusURL     string
}

func NewFakeAgentClientFactory

func NewFakeAgentClientFactory() *FakeAgentClientFactory

func (*FakeAgentClientFactory) Create

Jump to

Keyboard shortcuts

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