Documentation ¶
Index ¶
- type FakeAgentClient
- func (c *FakeAgentClient) Apply(applySpec bias.ApplySpec) error
- func (c *FakeAgentClient) CompilePackage(packageSource biagentclient.BlobRef, ...) (compiledPackageRef biagentclient.BlobRef, err error)
- func (c *FakeAgentClient) GetState() (biagentclient.AgentState, error)
- func (c *FakeAgentClient) ListDisk() ([]string, error)
- func (c *FakeAgentClient) MigrateDisk() error
- func (c *FakeAgentClient) MountDisk(diskCID string) error
- func (c *FakeAgentClient) Ping() (string, error)
- func (c *FakeAgentClient) SetGetStateBehavior(stateResponse biagentclient.AgentState, err error)
- func (c *FakeAgentClient) SetListDiskBehavior(disks []string, err error)
- func (c *FakeAgentClient) SetMigrateDiskBehavior(err error)
- func (c *FakeAgentClient) SetMountDiskBehavior(err error)
- func (c *FakeAgentClient) SetPingBehavior(response string, err error)
- func (c *FakeAgentClient) SetStartBehavior(err error)
- func (c *FakeAgentClient) SetStopBehavior(err error)
- func (c *FakeAgentClient) SetUnmountDiskBehavior(err error)
- func (c *FakeAgentClient) Start() error
- func (c *FakeAgentClient) Stop() error
- func (c *FakeAgentClient) UnmountDisk(diskCID string) error
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 bias.ApplySpec ApplyErr error StartCalled bool MountDiskCID string UnmountDiskCID string ListDiskCalled bool GetStateCalledTimes int MigrateDiskCalledTimes int // contains filtered or unexported fields }
func NewFakeAgentClient ¶
func NewFakeAgentClient() *FakeAgentClient
func (*FakeAgentClient) CompilePackage ¶
func (c *FakeAgentClient) CompilePackage( packageSource biagentclient.BlobRef, compiledPackageDependencies []biagentclient.BlobRef, ) ( compiledPackageRef biagentclient.BlobRef, err error, )
func (*FakeAgentClient) GetState ¶
func (c *FakeAgentClient) GetState() (biagentclient.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) SetGetStateBehavior ¶
func (c *FakeAgentClient) SetGetStateBehavior(stateResponse biagentclient.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) Start ¶
func (c *FakeAgentClient) Start() error
func (*FakeAgentClient) Stop ¶
func (c *FakeAgentClient) Stop() error
func (*FakeAgentClient) UnmountDisk ¶
func (c *FakeAgentClient) UnmountDisk(diskCID string) error
Click to show internal directories.
Click to hide internal directories.