fakes

package
v0.0.0-...-b3c9d2d Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 3 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 FakeAgentClient

type FakeAgentClient struct {
	PingResponses   []pingResponse
	PingCalledCount int

	StopCalled bool

	ApplyApplySpec applyspec.ApplySpec
	ApplyErr       error

	StartCalled bool

	MountDiskCID string

	UnmountDiskCID string

	ListDiskCalled bool

	GetStateCalledTimes int

	MigrateDiskCalledTimes int

	UpdateSettingsCalledTimes int

	RunScriptCalledTimes int
	// contains filtered or unexported fields
}

func NewFakeAgentClient

func NewFakeAgentClient() *FakeAgentClient

func (*FakeAgentClient) Apply

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

func (*FakeAgentClient) CompilePackage

func (c *FakeAgentClient) CompilePackage(
	packageSource agentclient.BlobRef,
	compiledPackageDependencies []agentclient.BlobRef,
) (
	compiledPackageRef agentclient.BlobRef,
	err error,
)

func (*FakeAgentClient) GetState

func (c *FakeAgentClient) GetState() (agentclient.AgentState, error)

func (*FakeAgentClient) ListDisk

func (c *FakeAgentClient) ListDisk() ([]string, error)

func (*FakeAgentClient) MigrateDisk

func (c *FakeAgentClient) MigrateDisk() error

func (*FakeAgentClient) MountDisk

func (c *FakeAgentClient) MountDisk(diskCID string) error

func (*FakeAgentClient) Ping

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

func (*FakeAgentClient) RunScript

func (c *FakeAgentClient) RunScript(scriptName string, options map[string]interface{}) error

func (*FakeAgentClient) SetGetStateBehavior

func (c *FakeAgentClient) SetGetStateBehavior(stateResponse agentclient.AgentState, err error)

func (*FakeAgentClient) SetListDiskBehavior

func (c *FakeAgentClient) SetListDiskBehavior(disks []string, err error)

func (*FakeAgentClient) SetMigrateDiskBehavior

func (c *FakeAgentClient) SetMigrateDiskBehavior(err error)

func (*FakeAgentClient) SetMountDiskBehavior

func (c *FakeAgentClient) SetMountDiskBehavior(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) SetUnmountDiskBehavior

func (c *FakeAgentClient) SetUnmountDiskBehavior(err error)

func (*FakeAgentClient) SetUpdateSettingsBehavior

func (c *FakeAgentClient) SetUpdateSettingsBehavior(err error)

func (*FakeAgentClient) Start

func (c *FakeAgentClient) Start() error

func (*FakeAgentClient) Stop

func (c *FakeAgentClient) Stop() error

func (*FakeAgentClient) UnmountDisk

func (c *FakeAgentClient) UnmountDisk(diskCID string) error

func (*FakeAgentClient) UpdateSettings

func (c *FakeAgentClient) UpdateSettings(settings settings.Settings) error

Jump to

Keyboard shortcuts

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