Documentation
¶
Index ¶
- type MockBackend
- func (_mock *MockBackend) AddACLRule(context1 context.Context, s string, s1 string, aCLRule compute.ACLRule) (compute.ACLRule, error)
- func (_mock *MockBackend) AttachNIC(context1 context.Context, ref compute.Ref, s string, s1 string, s2 string, ...) (compute.NIC, error)
- func (_mock *MockBackend) BeginCreateInstance(context1 context.Context, createInstance compute.CreateInstance) (compute.PendingInstance, error)
- func (_mock *MockBackend) CreateForward(context1 context.Context, s string, s1 string, ref compute.Ref, n int64, ...) (compute.Forward, error)
- func (_mock *MockBackend) CreateNetwork(context1 context.Context, s string, network compute.Network) (compute.Network, error)
- func (_mock *MockBackend) CreateSandbox(context1 context.Context, sandbox compute.Sandbox) error
- func (_mock *MockBackend) CreateSnapshot(context1 context.Context, ref compute.Ref, s string) error
- func (_mock *MockBackend) DeleteFile(context1 context.Context, ref compute.Ref, s string) error
- func (_mock *MockBackend) DeleteInstance(context1 context.Context, ref compute.Ref) error
- func (_mock *MockBackend) DeleteNetwork(context1 context.Context, s string, s1 string) error
- func (_mock *MockBackend) DeleteSandbox(context1 context.Context, s string) error
- func (_mock *MockBackend) DeleteSnapshot(context1 context.Context, ref compute.Ref, s string) error
- func (_mock *MockBackend) DetachNIC(context1 context.Context, ref compute.Ref, s string) error
- func (_m *MockBackend) EXPECT() *MockBackend_Expecter
- func (_mock *MockBackend) Exec(context1 context.Context, execRequest compute.ExecRequest, writer io.Writer, ...) (int64, error)
- func (_mock *MockBackend) ExtendSandbox(context1 context.Context, s string, time1 time.Time) (compute.Sandbox, error)
- func (_mock *MockBackend) GetInstance(context1 context.Context, ref compute.Ref) (compute.Instance, error)
- func (_mock *MockBackend) GetNetwork(context1 context.Context, s string, s1 string) (compute.Network, error)
- func (_mock *MockBackend) GetSandbox(context1 context.Context, s string) (compute.Sandbox, error)
- func (_mock *MockBackend) GetSandboxImage(context1 context.Context, s string, s1 string) (compute.CatalogImage, error)
- func (_mock *MockBackend) InstanceForward(context1 context.Context, ref compute.Ref, n int64, s string) (compute.Forward, error)
- func (_mock *MockBackend) ListInstances(context1 context.Context, s string) ([]compute.Instance, error)
- func (_mock *MockBackend) ListNetworks(context1 context.Context, s string) ([]compute.Network, error)
- func (_mock *MockBackend) ListSandboxes(context1 context.Context) ([]compute.Sandbox, error)
- func (_mock *MockBackend) ListSnapshots(context1 context.Context, ref compute.Ref) ([]compute.Snapshot, error)
- func (_mock *MockBackend) OpenExec(context1 context.Context, execRequest compute.ExecRequest) (io.ReadWriteCloser, error)
- func (_mock *MockBackend) PeerNetworks(context1 context.Context, s string, s1 string, s2 string) error
- func (_mock *MockBackend) PinSandbox(context1 context.Context, s string, b bool, s1 string, time1 time.Time) (compute.Sandbox, error)
- func (_mock *MockBackend) PublishInstance(context1 context.Context, ref compute.Ref, s string) (string, error)
- func (_mock *MockBackend) ReadBinaryFile(context1 context.Context, ref compute.Ref, s string) (io.ReadCloser, error)
- func (_mock *MockBackend) ReadFile(context1 context.Context, fileReadRequest compute.FileReadRequest) (compute.FileReadResult, error)
- func (_mock *MockBackend) RemoveACLRule(context1 context.Context, s string, s1 string, s2 string) error
- func (_mock *MockBackend) RestartInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
- func (_mock *MockBackend) RestoreSnapshot(context1 context.Context, ref compute.Ref, s string) error
- func (_mock *MockBackend) StartInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
- func (_mock *MockBackend) StopInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
- func (_mock *MockBackend) WaitInstance(context1 context.Context, waitRequest compute.WaitRequest) (compute.WaitResult, error)
- func (_mock *MockBackend) WriteFile(context1 context.Context, fileWriteRequest compute.FileWriteRequest) (compute.FileWriteResult, error)
- type MockBackend_AddACLRule_Call
- type MockBackend_AttachNIC_Call
- type MockBackend_BeginCreateInstance_Call
- func (_c *MockBackend_BeginCreateInstance_Call) Return(pendingInstance compute.PendingInstance, err error) *MockBackend_BeginCreateInstance_Call
- func (_c *MockBackend_BeginCreateInstance_Call) Run(run func(context1 context.Context, createInstance compute.CreateInstance)) *MockBackend_BeginCreateInstance_Call
- func (_c *MockBackend_BeginCreateInstance_Call) RunAndReturn(...) *MockBackend_BeginCreateInstance_Call
- type MockBackend_CreateForward_Call
- type MockBackend_CreateNetwork_Call
- func (_c *MockBackend_CreateNetwork_Call) Return(network1 compute.Network, err error) *MockBackend_CreateNetwork_Call
- func (_c *MockBackend_CreateNetwork_Call) Run(run func(context1 context.Context, s string, network compute.Network)) *MockBackend_CreateNetwork_Call
- func (_c *MockBackend_CreateNetwork_Call) RunAndReturn(...) *MockBackend_CreateNetwork_Call
- type MockBackend_CreateSandbox_Call
- func (_c *MockBackend_CreateSandbox_Call) Return(err error) *MockBackend_CreateSandbox_Call
- func (_c *MockBackend_CreateSandbox_Call) Run(run func(context1 context.Context, sandbox compute.Sandbox)) *MockBackend_CreateSandbox_Call
- func (_c *MockBackend_CreateSandbox_Call) RunAndReturn(run func(context1 context.Context, sandbox compute.Sandbox) error) *MockBackend_CreateSandbox_Call
- type MockBackend_CreateSnapshot_Call
- func (_c *MockBackend_CreateSnapshot_Call) Return(err error) *MockBackend_CreateSnapshot_Call
- func (_c *MockBackend_CreateSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_CreateSnapshot_Call
- func (_c *MockBackend_CreateSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_CreateSnapshot_Call
- type MockBackend_DeleteFile_Call
- func (_c *MockBackend_DeleteFile_Call) Return(err error) *MockBackend_DeleteFile_Call
- func (_c *MockBackend_DeleteFile_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DeleteFile_Call
- func (_c *MockBackend_DeleteFile_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DeleteFile_Call
- type MockBackend_DeleteInstance_Call
- func (_c *MockBackend_DeleteInstance_Call) Return(err error) *MockBackend_DeleteInstance_Call
- func (_c *MockBackend_DeleteInstance_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_DeleteInstance_Call
- func (_c *MockBackend_DeleteInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref) error) *MockBackend_DeleteInstance_Call
- type MockBackend_DeleteNetwork_Call
- func (_c *MockBackend_DeleteNetwork_Call) Return(err error) *MockBackend_DeleteNetwork_Call
- func (_c *MockBackend_DeleteNetwork_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_DeleteNetwork_Call
- func (_c *MockBackend_DeleteNetwork_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) error) *MockBackend_DeleteNetwork_Call
- type MockBackend_DeleteSandbox_Call
- func (_c *MockBackend_DeleteSandbox_Call) Return(err error) *MockBackend_DeleteSandbox_Call
- func (_c *MockBackend_DeleteSandbox_Call) Run(run func(context1 context.Context, s string)) *MockBackend_DeleteSandbox_Call
- func (_c *MockBackend_DeleteSandbox_Call) RunAndReturn(run func(context1 context.Context, s string) error) *MockBackend_DeleteSandbox_Call
- type MockBackend_DeleteSnapshot_Call
- func (_c *MockBackend_DeleteSnapshot_Call) Return(err error) *MockBackend_DeleteSnapshot_Call
- func (_c *MockBackend_DeleteSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DeleteSnapshot_Call
- func (_c *MockBackend_DeleteSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DeleteSnapshot_Call
- type MockBackend_DetachNIC_Call
- func (_c *MockBackend_DetachNIC_Call) Return(err error) *MockBackend_DetachNIC_Call
- func (_c *MockBackend_DetachNIC_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DetachNIC_Call
- func (_c *MockBackend_DetachNIC_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DetachNIC_Call
- type MockBackend_Exec_Call
- type MockBackend_Expecter
- func (_e *MockBackend_Expecter) AddACLRule(context1 interface{}, s interface{}, s1 interface{}, aCLRule interface{}) *MockBackend_AddACLRule_Call
- func (_e *MockBackend_Expecter) AttachNIC(context1 interface{}, ref interface{}, s interface{}, s1 interface{}, ...) *MockBackend_AttachNIC_Call
- func (_e *MockBackend_Expecter) BeginCreateInstance(context1 interface{}, createInstance interface{}) *MockBackend_BeginCreateInstance_Call
- func (_e *MockBackend_Expecter) CreateForward(context1 interface{}, s interface{}, s1 interface{}, ref interface{}, ...) *MockBackend_CreateForward_Call
- func (_e *MockBackend_Expecter) CreateNetwork(context1 interface{}, s interface{}, network interface{}) *MockBackend_CreateNetwork_Call
- func (_e *MockBackend_Expecter) CreateSandbox(context1 interface{}, sandbox interface{}) *MockBackend_CreateSandbox_Call
- func (_e *MockBackend_Expecter) CreateSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_CreateSnapshot_Call
- func (_e *MockBackend_Expecter) DeleteFile(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DeleteFile_Call
- func (_e *MockBackend_Expecter) DeleteInstance(context1 interface{}, ref interface{}) *MockBackend_DeleteInstance_Call
- func (_e *MockBackend_Expecter) DeleteNetwork(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_DeleteNetwork_Call
- func (_e *MockBackend_Expecter) DeleteSandbox(context1 interface{}, s interface{}) *MockBackend_DeleteSandbox_Call
- func (_e *MockBackend_Expecter) DeleteSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DeleteSnapshot_Call
- func (_e *MockBackend_Expecter) DetachNIC(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DetachNIC_Call
- func (_e *MockBackend_Expecter) Exec(context1 interface{}, execRequest interface{}, writer interface{}, ...) *MockBackend_Exec_Call
- func (_e *MockBackend_Expecter) ExtendSandbox(context1 interface{}, s interface{}, time1 interface{}) *MockBackend_ExtendSandbox_Call
- func (_e *MockBackend_Expecter) GetInstance(context1 interface{}, ref interface{}) *MockBackend_GetInstance_Call
- func (_e *MockBackend_Expecter) GetNetwork(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_GetNetwork_Call
- func (_e *MockBackend_Expecter) GetSandbox(context1 interface{}, s interface{}) *MockBackend_GetSandbox_Call
- func (_e *MockBackend_Expecter) GetSandboxImage(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_GetSandboxImage_Call
- func (_e *MockBackend_Expecter) InstanceForward(context1 interface{}, ref interface{}, n interface{}, s interface{}) *MockBackend_InstanceForward_Call
- func (_e *MockBackend_Expecter) ListInstances(context1 interface{}, s interface{}) *MockBackend_ListInstances_Call
- func (_e *MockBackend_Expecter) ListNetworks(context1 interface{}, s interface{}) *MockBackend_ListNetworks_Call
- func (_e *MockBackend_Expecter) ListSandboxes(context1 interface{}) *MockBackend_ListSandboxes_Call
- func (_e *MockBackend_Expecter) ListSnapshots(context1 interface{}, ref interface{}) *MockBackend_ListSnapshots_Call
- func (_e *MockBackend_Expecter) OpenExec(context1 interface{}, execRequest interface{}) *MockBackend_OpenExec_Call
- func (_e *MockBackend_Expecter) PeerNetworks(context1 interface{}, s interface{}, s1 interface{}, s2 interface{}) *MockBackend_PeerNetworks_Call
- func (_e *MockBackend_Expecter) PinSandbox(context1 interface{}, s interface{}, b interface{}, s1 interface{}, ...) *MockBackend_PinSandbox_Call
- func (_e *MockBackend_Expecter) PublishInstance(context1 interface{}, ref interface{}, s interface{}) *MockBackend_PublishInstance_Call
- func (_e *MockBackend_Expecter) ReadBinaryFile(context1 interface{}, ref interface{}, s interface{}) *MockBackend_ReadBinaryFile_Call
- func (_e *MockBackend_Expecter) ReadFile(context1 interface{}, fileReadRequest interface{}) *MockBackend_ReadFile_Call
- func (_e *MockBackend_Expecter) RemoveACLRule(context1 interface{}, s interface{}, s1 interface{}, s2 interface{}) *MockBackend_RemoveACLRule_Call
- func (_e *MockBackend_Expecter) RestartInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_RestartInstance_Call
- func (_e *MockBackend_Expecter) RestoreSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_RestoreSnapshot_Call
- func (_e *MockBackend_Expecter) StartInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_StartInstance_Call
- func (_e *MockBackend_Expecter) StopInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_StopInstance_Call
- func (_e *MockBackend_Expecter) WaitInstance(context1 interface{}, waitRequest interface{}) *MockBackend_WaitInstance_Call
- func (_e *MockBackend_Expecter) WriteFile(context1 interface{}, fileWriteRequest interface{}) *MockBackend_WriteFile_Call
- type MockBackend_ExtendSandbox_Call
- func (_c *MockBackend_ExtendSandbox_Call) Return(sandbox compute.Sandbox, err error) *MockBackend_ExtendSandbox_Call
- func (_c *MockBackend_ExtendSandbox_Call) Run(run func(context1 context.Context, s string, time1 time.Time)) *MockBackend_ExtendSandbox_Call
- func (_c *MockBackend_ExtendSandbox_Call) RunAndReturn(...) *MockBackend_ExtendSandbox_Call
- type MockBackend_GetInstance_Call
- func (_c *MockBackend_GetInstance_Call) Return(instance compute.Instance, err error) *MockBackend_GetInstance_Call
- func (_c *MockBackend_GetInstance_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_GetInstance_Call
- func (_c *MockBackend_GetInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref) (compute.Instance, error)) *MockBackend_GetInstance_Call
- type MockBackend_GetNetwork_Call
- func (_c *MockBackend_GetNetwork_Call) Return(network compute.Network, err error) *MockBackend_GetNetwork_Call
- func (_c *MockBackend_GetNetwork_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_GetNetwork_Call
- func (_c *MockBackend_GetNetwork_Call) RunAndReturn(...) *MockBackend_GetNetwork_Call
- type MockBackend_GetSandboxImage_Call
- func (_c *MockBackend_GetSandboxImage_Call) Return(catalogImage compute.CatalogImage, err error) *MockBackend_GetSandboxImage_Call
- func (_c *MockBackend_GetSandboxImage_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_GetSandboxImage_Call
- func (_c *MockBackend_GetSandboxImage_Call) RunAndReturn(...) *MockBackend_GetSandboxImage_Call
- type MockBackend_GetSandbox_Call
- func (_c *MockBackend_GetSandbox_Call) Return(sandbox compute.Sandbox, err error) *MockBackend_GetSandbox_Call
- func (_c *MockBackend_GetSandbox_Call) Run(run func(context1 context.Context, s string)) *MockBackend_GetSandbox_Call
- func (_c *MockBackend_GetSandbox_Call) RunAndReturn(run func(context1 context.Context, s string) (compute.Sandbox, error)) *MockBackend_GetSandbox_Call
- type MockBackend_InstanceForward_Call
- func (_c *MockBackend_InstanceForward_Call) Return(forward compute.Forward, err error) *MockBackend_InstanceForward_Call
- func (_c *MockBackend_InstanceForward_Call) Run(run func(context1 context.Context, ref compute.Ref, n int64, s string)) *MockBackend_InstanceForward_Call
- func (_c *MockBackend_InstanceForward_Call) RunAndReturn(...) *MockBackend_InstanceForward_Call
- type MockBackend_ListInstances_Call
- func (_c *MockBackend_ListInstances_Call) Return(instances []compute.Instance, err error) *MockBackend_ListInstances_Call
- func (_c *MockBackend_ListInstances_Call) Run(run func(context1 context.Context, s string)) *MockBackend_ListInstances_Call
- func (_c *MockBackend_ListInstances_Call) RunAndReturn(run func(context1 context.Context, s string) ([]compute.Instance, error)) *MockBackend_ListInstances_Call
- type MockBackend_ListNetworks_Call
- func (_c *MockBackend_ListNetworks_Call) Return(networks []compute.Network, err error) *MockBackend_ListNetworks_Call
- func (_c *MockBackend_ListNetworks_Call) Run(run func(context1 context.Context, s string)) *MockBackend_ListNetworks_Call
- func (_c *MockBackend_ListNetworks_Call) RunAndReturn(run func(context1 context.Context, s string) ([]compute.Network, error)) *MockBackend_ListNetworks_Call
- type MockBackend_ListSandboxes_Call
- func (_c *MockBackend_ListSandboxes_Call) Return(sandboxs []compute.Sandbox, err error) *MockBackend_ListSandboxes_Call
- func (_c *MockBackend_ListSandboxes_Call) Run(run func(context1 context.Context)) *MockBackend_ListSandboxes_Call
- func (_c *MockBackend_ListSandboxes_Call) RunAndReturn(run func(context1 context.Context) ([]compute.Sandbox, error)) *MockBackend_ListSandboxes_Call
- type MockBackend_ListSnapshots_Call
- func (_c *MockBackend_ListSnapshots_Call) Return(snapshots []compute.Snapshot, err error) *MockBackend_ListSnapshots_Call
- func (_c *MockBackend_ListSnapshots_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_ListSnapshots_Call
- func (_c *MockBackend_ListSnapshots_Call) RunAndReturn(...) *MockBackend_ListSnapshots_Call
- type MockBackend_OpenExec_Call
- func (_c *MockBackend_OpenExec_Call) Return(readWriteCloser io.ReadWriteCloser, err error) *MockBackend_OpenExec_Call
- func (_c *MockBackend_OpenExec_Call) Run(run func(context1 context.Context, execRequest compute.ExecRequest)) *MockBackend_OpenExec_Call
- func (_c *MockBackend_OpenExec_Call) RunAndReturn(...) *MockBackend_OpenExec_Call
- type MockBackend_PeerNetworks_Call
- func (_c *MockBackend_PeerNetworks_Call) Return(err error) *MockBackend_PeerNetworks_Call
- func (_c *MockBackend_PeerNetworks_Call) Run(run func(context1 context.Context, s string, s1 string, s2 string)) *MockBackend_PeerNetworks_Call
- func (_c *MockBackend_PeerNetworks_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, s2 string) error) *MockBackend_PeerNetworks_Call
- type MockBackend_PinSandbox_Call
- type MockBackend_PublishInstance_Call
- func (_c *MockBackend_PublishInstance_Call) Return(s1 string, err error) *MockBackend_PublishInstance_Call
- func (_c *MockBackend_PublishInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_PublishInstance_Call
- func (_c *MockBackend_PublishInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) (string, error)) *MockBackend_PublishInstance_Call
- type MockBackend_ReadBinaryFile_Call
- func (_c *MockBackend_ReadBinaryFile_Call) Return(readCloser io.ReadCloser, err error) *MockBackend_ReadBinaryFile_Call
- func (_c *MockBackend_ReadBinaryFile_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_ReadBinaryFile_Call
- func (_c *MockBackend_ReadBinaryFile_Call) RunAndReturn(...) *MockBackend_ReadBinaryFile_Call
- type MockBackend_ReadFile_Call
- func (_c *MockBackend_ReadFile_Call) Return(fileReadResult compute.FileReadResult, err error) *MockBackend_ReadFile_Call
- func (_c *MockBackend_ReadFile_Call) Run(run func(context1 context.Context, fileReadRequest compute.FileReadRequest)) *MockBackend_ReadFile_Call
- func (_c *MockBackend_ReadFile_Call) RunAndReturn(...) *MockBackend_ReadFile_Call
- type MockBackend_RemoveACLRule_Call
- func (_c *MockBackend_RemoveACLRule_Call) Return(err error) *MockBackend_RemoveACLRule_Call
- func (_c *MockBackend_RemoveACLRule_Call) Run(run func(context1 context.Context, s string, s1 string, s2 string)) *MockBackend_RemoveACLRule_Call
- func (_c *MockBackend_RemoveACLRule_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, s2 string) error) *MockBackend_RemoveACLRule_Call
- type MockBackend_RestartInstance_Call
- func (_c *MockBackend_RestartInstance_Call) Return(instance compute.Instance, err error) *MockBackend_RestartInstance_Call
- func (_c *MockBackend_RestartInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_RestartInstance_Call
- func (_c *MockBackend_RestartInstance_Call) RunAndReturn(...) *MockBackend_RestartInstance_Call
- type MockBackend_RestoreSnapshot_Call
- func (_c *MockBackend_RestoreSnapshot_Call) Return(err error) *MockBackend_RestoreSnapshot_Call
- func (_c *MockBackend_RestoreSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_RestoreSnapshot_Call
- func (_c *MockBackend_RestoreSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_RestoreSnapshot_Call
- type MockBackend_StartInstance_Call
- func (_c *MockBackend_StartInstance_Call) Return(instance compute.Instance, err error) *MockBackend_StartInstance_Call
- func (_c *MockBackend_StartInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_StartInstance_Call
- func (_c *MockBackend_StartInstance_Call) RunAndReturn(...) *MockBackend_StartInstance_Call
- type MockBackend_StopInstance_Call
- func (_c *MockBackend_StopInstance_Call) Return(instance compute.Instance, err error) *MockBackend_StopInstance_Call
- func (_c *MockBackend_StopInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_StopInstance_Call
- func (_c *MockBackend_StopInstance_Call) RunAndReturn(...) *MockBackend_StopInstance_Call
- type MockBackend_WaitInstance_Call
- func (_c *MockBackend_WaitInstance_Call) Return(waitResult compute.WaitResult, err error) *MockBackend_WaitInstance_Call
- func (_c *MockBackend_WaitInstance_Call) Run(run func(context1 context.Context, waitRequest compute.WaitRequest)) *MockBackend_WaitInstance_Call
- func (_c *MockBackend_WaitInstance_Call) RunAndReturn(...) *MockBackend_WaitInstance_Call
- type MockBackend_WriteFile_Call
- func (_c *MockBackend_WriteFile_Call) Return(fileWriteResult compute.FileWriteResult, err error) *MockBackend_WriteFile_Call
- func (_c *MockBackend_WriteFile_Call) Run(run func(context1 context.Context, fileWriteRequest compute.FileWriteRequest)) *MockBackend_WriteFile_Call
- func (_c *MockBackend_WriteFile_Call) RunAndReturn(...) *MockBackend_WriteFile_Call
- type MockPendingInstance
- type MockPendingInstance_Expecter
- type MockPendingInstance_Wait_Call
- func (_c *MockPendingInstance_Wait_Call) Return(instance compute.Instance, err error) *MockPendingInstance_Wait_Call
- func (_c *MockPendingInstance_Wait_Call) Run(run func(context1 context.Context)) *MockPendingInstance_Wait_Call
- func (_c *MockPendingInstance_Wait_Call) RunAndReturn(run func(context1 context.Context) (compute.Instance, error)) *MockPendingInstance_Wait_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
MockBackend is an autogenerated mock type for the Backend type
func NewMockBackend ¶
func NewMockBackend(t interface {
mock.TestingT
Cleanup(func())
}) *MockBackend
NewMockBackend creates a new instance of MockBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBackend) AddACLRule ¶
func (_mock *MockBackend) AddACLRule(context1 context.Context, s string, s1 string, aCLRule compute.ACLRule) (compute.ACLRule, error)
AddACLRule provides a mock function for the type MockBackend
func (*MockBackend) AttachNIC ¶
func (_mock *MockBackend) AttachNIC(context1 context.Context, ref compute.Ref, s string, s1 string, s2 string, s3 string) (compute.NIC, error)
AttachNIC provides a mock function for the type MockBackend
func (*MockBackend) BeginCreateInstance ¶
func (_mock *MockBackend) BeginCreateInstance(context1 context.Context, createInstance compute.CreateInstance) (compute.PendingInstance, error)
BeginCreateInstance provides a mock function for the type MockBackend
func (*MockBackend) CreateForward ¶
func (_mock *MockBackend) CreateForward(context1 context.Context, s string, s1 string, ref compute.Ref, n int64, n1 int64, s2 string) (compute.Forward, error)
CreateForward provides a mock function for the type MockBackend
func (*MockBackend) CreateNetwork ¶
func (_mock *MockBackend) CreateNetwork(context1 context.Context, s string, network compute.Network) (compute.Network, error)
CreateNetwork provides a mock function for the type MockBackend
func (*MockBackend) CreateSandbox ¶
CreateSandbox provides a mock function for the type MockBackend
func (*MockBackend) CreateSnapshot ¶
CreateSnapshot provides a mock function for the type MockBackend
func (*MockBackend) DeleteFile ¶
DeleteFile provides a mock function for the type MockBackend
func (*MockBackend) DeleteInstance ¶
DeleteInstance provides a mock function for the type MockBackend
func (*MockBackend) DeleteNetwork ¶
DeleteNetwork provides a mock function for the type MockBackend
func (*MockBackend) DeleteSandbox ¶
func (_mock *MockBackend) DeleteSandbox(context1 context.Context, s string) error
DeleteSandbox provides a mock function for the type MockBackend
func (*MockBackend) DeleteSnapshot ¶
DeleteSnapshot provides a mock function for the type MockBackend
func (*MockBackend) EXPECT ¶
func (_m *MockBackend) EXPECT() *MockBackend_Expecter
func (*MockBackend) Exec ¶
func (_mock *MockBackend) Exec(context1 context.Context, execRequest compute.ExecRequest, writer io.Writer, writer1 io.Writer) (int64, error)
Exec provides a mock function for the type MockBackend
func (*MockBackend) ExtendSandbox ¶
func (_mock *MockBackend) ExtendSandbox(context1 context.Context, s string, time1 time.Time) (compute.Sandbox, error)
ExtendSandbox provides a mock function for the type MockBackend
func (*MockBackend) GetInstance ¶
func (_mock *MockBackend) GetInstance(context1 context.Context, ref compute.Ref) (compute.Instance, error)
GetInstance provides a mock function for the type MockBackend
func (*MockBackend) GetNetwork ¶
func (_mock *MockBackend) GetNetwork(context1 context.Context, s string, s1 string) (compute.Network, error)
GetNetwork provides a mock function for the type MockBackend
func (*MockBackend) GetSandbox ¶
GetSandbox provides a mock function for the type MockBackend
func (*MockBackend) GetSandboxImage ¶
func (_mock *MockBackend) GetSandboxImage(context1 context.Context, s string, s1 string) (compute.CatalogImage, error)
GetSandboxImage provides a mock function for the type MockBackend
func (*MockBackend) InstanceForward ¶
func (_mock *MockBackend) InstanceForward(context1 context.Context, ref compute.Ref, n int64, s string) (compute.Forward, error)
InstanceForward provides a mock function for the type MockBackend
func (*MockBackend) ListInstances ¶
func (_mock *MockBackend) ListInstances(context1 context.Context, s string) ([]compute.Instance, error)
ListInstances provides a mock function for the type MockBackend
func (*MockBackend) ListNetworks ¶
func (_mock *MockBackend) ListNetworks(context1 context.Context, s string) ([]compute.Network, error)
ListNetworks provides a mock function for the type MockBackend
func (*MockBackend) ListSandboxes ¶
ListSandboxes provides a mock function for the type MockBackend
func (*MockBackend) ListSnapshots ¶
func (_mock *MockBackend) ListSnapshots(context1 context.Context, ref compute.Ref) ([]compute.Snapshot, error)
ListSnapshots provides a mock function for the type MockBackend
func (*MockBackend) OpenExec ¶
func (_mock *MockBackend) OpenExec(context1 context.Context, execRequest compute.ExecRequest) (io.ReadWriteCloser, error)
OpenExec provides a mock function for the type MockBackend
func (*MockBackend) PeerNetworks ¶
func (_mock *MockBackend) PeerNetworks(context1 context.Context, s string, s1 string, s2 string) error
PeerNetworks provides a mock function for the type MockBackend
func (*MockBackend) PinSandbox ¶ added in v0.1.5
func (_mock *MockBackend) PinSandbox(context1 context.Context, s string, b bool, s1 string, time1 time.Time) (compute.Sandbox, error)
PinSandbox provides a mock function for the type MockBackend
func (*MockBackend) PublishInstance ¶
func (_mock *MockBackend) PublishInstance(context1 context.Context, ref compute.Ref, s string) (string, error)
PublishInstance provides a mock function for the type MockBackend
func (*MockBackend) ReadBinaryFile ¶
func (_mock *MockBackend) ReadBinaryFile(context1 context.Context, ref compute.Ref, s string) (io.ReadCloser, error)
ReadBinaryFile provides a mock function for the type MockBackend
func (*MockBackend) ReadFile ¶
func (_mock *MockBackend) ReadFile(context1 context.Context, fileReadRequest compute.FileReadRequest) (compute.FileReadResult, error)
ReadFile provides a mock function for the type MockBackend
func (*MockBackend) RemoveACLRule ¶
func (_mock *MockBackend) RemoveACLRule(context1 context.Context, s string, s1 string, s2 string) error
RemoveACLRule provides a mock function for the type MockBackend
func (*MockBackend) RestartInstance ¶
func (_mock *MockBackend) RestartInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
RestartInstance provides a mock function for the type MockBackend
func (*MockBackend) RestoreSnapshot ¶
func (_mock *MockBackend) RestoreSnapshot(context1 context.Context, ref compute.Ref, s string) error
RestoreSnapshot provides a mock function for the type MockBackend
func (*MockBackend) StartInstance ¶
func (_mock *MockBackend) StartInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
StartInstance provides a mock function for the type MockBackend
func (*MockBackend) StopInstance ¶
func (_mock *MockBackend) StopInstance(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)
StopInstance provides a mock function for the type MockBackend
func (*MockBackend) WaitInstance ¶
func (_mock *MockBackend) WaitInstance(context1 context.Context, waitRequest compute.WaitRequest) (compute.WaitResult, error)
WaitInstance provides a mock function for the type MockBackend
func (*MockBackend) WriteFile ¶
func (_mock *MockBackend) WriteFile(context1 context.Context, fileWriteRequest compute.FileWriteRequest) (compute.FileWriteResult, error)
WriteFile provides a mock function for the type MockBackend
type MockBackend_AddACLRule_Call ¶
MockBackend_AddACLRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddACLRule'
func (*MockBackend_AddACLRule_Call) Return ¶
func (_c *MockBackend_AddACLRule_Call) Return(aCLRule1 compute.ACLRule, err error) *MockBackend_AddACLRule_Call
func (*MockBackend_AddACLRule_Call) Run ¶
func (_c *MockBackend_AddACLRule_Call) Run(run func(context1 context.Context, s string, s1 string, aCLRule compute.ACLRule)) *MockBackend_AddACLRule_Call
func (*MockBackend_AddACLRule_Call) RunAndReturn ¶
type MockBackend_AttachNIC_Call ¶
MockBackend_AttachNIC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachNIC'
func (*MockBackend_AttachNIC_Call) Return ¶
func (_c *MockBackend_AttachNIC_Call) Return(nIC compute.NIC, err error) *MockBackend_AttachNIC_Call
func (*MockBackend_AttachNIC_Call) Run ¶
func (_c *MockBackend_AttachNIC_Call) Run(run func(context1 context.Context, ref compute.Ref, s string, s1 string, s2 string, s3 string)) *MockBackend_AttachNIC_Call
func (*MockBackend_AttachNIC_Call) RunAndReturn ¶
type MockBackend_BeginCreateInstance_Call ¶
MockBackend_BeginCreateInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginCreateInstance'
func (*MockBackend_BeginCreateInstance_Call) Return ¶
func (_c *MockBackend_BeginCreateInstance_Call) Return(pendingInstance compute.PendingInstance, err error) *MockBackend_BeginCreateInstance_Call
func (*MockBackend_BeginCreateInstance_Call) Run ¶
func (_c *MockBackend_BeginCreateInstance_Call) Run(run func(context1 context.Context, createInstance compute.CreateInstance)) *MockBackend_BeginCreateInstance_Call
func (*MockBackend_BeginCreateInstance_Call) RunAndReturn ¶
func (_c *MockBackend_BeginCreateInstance_Call) RunAndReturn(run func(context1 context.Context, createInstance compute.CreateInstance) (compute.PendingInstance, error)) *MockBackend_BeginCreateInstance_Call
type MockBackend_CreateForward_Call ¶
MockBackend_CreateForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateForward'
func (*MockBackend_CreateForward_Call) Return ¶
func (_c *MockBackend_CreateForward_Call) Return(forward compute.Forward, err error) *MockBackend_CreateForward_Call
type MockBackend_CreateNetwork_Call ¶
MockBackend_CreateNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNetwork'
func (*MockBackend_CreateNetwork_Call) Return ¶
func (_c *MockBackend_CreateNetwork_Call) Return(network1 compute.Network, err error) *MockBackend_CreateNetwork_Call
func (*MockBackend_CreateNetwork_Call) Run ¶
func (_c *MockBackend_CreateNetwork_Call) Run(run func(context1 context.Context, s string, network compute.Network)) *MockBackend_CreateNetwork_Call
func (*MockBackend_CreateNetwork_Call) RunAndReturn ¶
func (_c *MockBackend_CreateNetwork_Call) RunAndReturn(run func(context1 context.Context, s string, network compute.Network) (compute.Network, error)) *MockBackend_CreateNetwork_Call
type MockBackend_CreateSandbox_Call ¶
MockBackend_CreateSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSandbox'
func (*MockBackend_CreateSandbox_Call) Return ¶
func (_c *MockBackend_CreateSandbox_Call) Return(err error) *MockBackend_CreateSandbox_Call
func (*MockBackend_CreateSandbox_Call) Run ¶
func (_c *MockBackend_CreateSandbox_Call) Run(run func(context1 context.Context, sandbox compute.Sandbox)) *MockBackend_CreateSandbox_Call
func (*MockBackend_CreateSandbox_Call) RunAndReturn ¶
func (_c *MockBackend_CreateSandbox_Call) RunAndReturn(run func(context1 context.Context, sandbox compute.Sandbox) error) *MockBackend_CreateSandbox_Call
type MockBackend_CreateSnapshot_Call ¶
MockBackend_CreateSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSnapshot'
func (*MockBackend_CreateSnapshot_Call) Return ¶
func (_c *MockBackend_CreateSnapshot_Call) Return(err error) *MockBackend_CreateSnapshot_Call
func (*MockBackend_CreateSnapshot_Call) Run ¶
func (_c *MockBackend_CreateSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_CreateSnapshot_Call
func (*MockBackend_CreateSnapshot_Call) RunAndReturn ¶
func (_c *MockBackend_CreateSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_CreateSnapshot_Call
type MockBackend_DeleteFile_Call ¶
MockBackend_DeleteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFile'
func (*MockBackend_DeleteFile_Call) Return ¶
func (_c *MockBackend_DeleteFile_Call) Return(err error) *MockBackend_DeleteFile_Call
func (*MockBackend_DeleteFile_Call) Run ¶
func (_c *MockBackend_DeleteFile_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DeleteFile_Call
func (*MockBackend_DeleteFile_Call) RunAndReturn ¶
func (_c *MockBackend_DeleteFile_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DeleteFile_Call
type MockBackend_DeleteInstance_Call ¶
MockBackend_DeleteInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteInstance'
func (*MockBackend_DeleteInstance_Call) Return ¶
func (_c *MockBackend_DeleteInstance_Call) Return(err error) *MockBackend_DeleteInstance_Call
func (*MockBackend_DeleteInstance_Call) Run ¶
func (_c *MockBackend_DeleteInstance_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_DeleteInstance_Call
func (*MockBackend_DeleteInstance_Call) RunAndReturn ¶
func (_c *MockBackend_DeleteInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref) error) *MockBackend_DeleteInstance_Call
type MockBackend_DeleteNetwork_Call ¶
MockBackend_DeleteNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNetwork'
func (*MockBackend_DeleteNetwork_Call) Return ¶
func (_c *MockBackend_DeleteNetwork_Call) Return(err error) *MockBackend_DeleteNetwork_Call
func (*MockBackend_DeleteNetwork_Call) Run ¶
func (_c *MockBackend_DeleteNetwork_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_DeleteNetwork_Call
func (*MockBackend_DeleteNetwork_Call) RunAndReturn ¶
func (_c *MockBackend_DeleteNetwork_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) error) *MockBackend_DeleteNetwork_Call
type MockBackend_DeleteSandbox_Call ¶
MockBackend_DeleteSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSandbox'
func (*MockBackend_DeleteSandbox_Call) Return ¶
func (_c *MockBackend_DeleteSandbox_Call) Return(err error) *MockBackend_DeleteSandbox_Call
func (*MockBackend_DeleteSandbox_Call) Run ¶
func (_c *MockBackend_DeleteSandbox_Call) Run(run func(context1 context.Context, s string)) *MockBackend_DeleteSandbox_Call
func (*MockBackend_DeleteSandbox_Call) RunAndReturn ¶
func (_c *MockBackend_DeleteSandbox_Call) RunAndReturn(run func(context1 context.Context, s string) error) *MockBackend_DeleteSandbox_Call
type MockBackend_DeleteSnapshot_Call ¶
MockBackend_DeleteSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSnapshot'
func (*MockBackend_DeleteSnapshot_Call) Return ¶
func (_c *MockBackend_DeleteSnapshot_Call) Return(err error) *MockBackend_DeleteSnapshot_Call
func (*MockBackend_DeleteSnapshot_Call) Run ¶
func (_c *MockBackend_DeleteSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DeleteSnapshot_Call
func (*MockBackend_DeleteSnapshot_Call) RunAndReturn ¶
func (_c *MockBackend_DeleteSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DeleteSnapshot_Call
type MockBackend_DetachNIC_Call ¶
MockBackend_DetachNIC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachNIC'
func (*MockBackend_DetachNIC_Call) Return ¶
func (_c *MockBackend_DetachNIC_Call) Return(err error) *MockBackend_DetachNIC_Call
func (*MockBackend_DetachNIC_Call) Run ¶
func (_c *MockBackend_DetachNIC_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_DetachNIC_Call
func (*MockBackend_DetachNIC_Call) RunAndReturn ¶
func (_c *MockBackend_DetachNIC_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_DetachNIC_Call
type MockBackend_Exec_Call ¶
MockBackend_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockBackend_Exec_Call) Return ¶
func (_c *MockBackend_Exec_Call) Return(n int64, err error) *MockBackend_Exec_Call
func (*MockBackend_Exec_Call) Run ¶
func (_c *MockBackend_Exec_Call) Run(run func(context1 context.Context, execRequest compute.ExecRequest, writer io.Writer, writer1 io.Writer)) *MockBackend_Exec_Call
func (*MockBackend_Exec_Call) RunAndReturn ¶
func (_c *MockBackend_Exec_Call) RunAndReturn(run func(context1 context.Context, execRequest compute.ExecRequest, writer io.Writer, writer1 io.Writer) (int64, error)) *MockBackend_Exec_Call
type MockBackend_Expecter ¶
type MockBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBackend_Expecter) AddACLRule ¶
func (_e *MockBackend_Expecter) AddACLRule(context1 interface{}, s interface{}, s1 interface{}, aCLRule interface{}) *MockBackend_AddACLRule_Call
AddACLRule is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
- aCLRule compute.ACLRule
func (*MockBackend_Expecter) AttachNIC ¶
func (_e *MockBackend_Expecter) AttachNIC(context1 interface{}, ref interface{}, s interface{}, s1 interface{}, s2 interface{}, s3 interface{}) *MockBackend_AttachNIC_Call
AttachNIC is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
- s1 string
- s2 string
- s3 string
func (*MockBackend_Expecter) BeginCreateInstance ¶
func (_e *MockBackend_Expecter) BeginCreateInstance(context1 interface{}, createInstance interface{}) *MockBackend_BeginCreateInstance_Call
BeginCreateInstance is a helper method to define mock.On call
- context1 context.Context
- createInstance compute.CreateInstance
func (*MockBackend_Expecter) CreateForward ¶
func (_e *MockBackend_Expecter) CreateForward(context1 interface{}, s interface{}, s1 interface{}, ref interface{}, n interface{}, n1 interface{}, s2 interface{}) *MockBackend_CreateForward_Call
CreateForward is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
- ref compute.Ref
- n int64
- n1 int64
- s2 string
func (*MockBackend_Expecter) CreateNetwork ¶
func (_e *MockBackend_Expecter) CreateNetwork(context1 interface{}, s interface{}, network interface{}) *MockBackend_CreateNetwork_Call
CreateNetwork is a helper method to define mock.On call
- context1 context.Context
- s string
- network compute.Network
func (*MockBackend_Expecter) CreateSandbox ¶
func (_e *MockBackend_Expecter) CreateSandbox(context1 interface{}, sandbox interface{}) *MockBackend_CreateSandbox_Call
CreateSandbox is a helper method to define mock.On call
- context1 context.Context
- sandbox compute.Sandbox
func (*MockBackend_Expecter) CreateSnapshot ¶
func (_e *MockBackend_Expecter) CreateSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_CreateSnapshot_Call
CreateSnapshot is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) DeleteFile ¶
func (_e *MockBackend_Expecter) DeleteFile(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DeleteFile_Call
DeleteFile is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) DeleteInstance ¶
func (_e *MockBackend_Expecter) DeleteInstance(context1 interface{}, ref interface{}) *MockBackend_DeleteInstance_Call
DeleteInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
func (*MockBackend_Expecter) DeleteNetwork ¶
func (_e *MockBackend_Expecter) DeleteNetwork(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_DeleteNetwork_Call
DeleteNetwork is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
func (*MockBackend_Expecter) DeleteSandbox ¶
func (_e *MockBackend_Expecter) DeleteSandbox(context1 interface{}, s interface{}) *MockBackend_DeleteSandbox_Call
DeleteSandbox is a helper method to define mock.On call
- context1 context.Context
- s string
func (*MockBackend_Expecter) DeleteSnapshot ¶
func (_e *MockBackend_Expecter) DeleteSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DeleteSnapshot_Call
DeleteSnapshot is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) DetachNIC ¶
func (_e *MockBackend_Expecter) DetachNIC(context1 interface{}, ref interface{}, s interface{}) *MockBackend_DetachNIC_Call
DetachNIC is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) Exec ¶
func (_e *MockBackend_Expecter) Exec(context1 interface{}, execRequest interface{}, writer interface{}, writer1 interface{}) *MockBackend_Exec_Call
Exec is a helper method to define mock.On call
- context1 context.Context
- execRequest compute.ExecRequest
- writer io.Writer
- writer1 io.Writer
func (*MockBackend_Expecter) ExtendSandbox ¶
func (_e *MockBackend_Expecter) ExtendSandbox(context1 interface{}, s interface{}, time1 interface{}) *MockBackend_ExtendSandbox_Call
ExtendSandbox is a helper method to define mock.On call
- context1 context.Context
- s string
- time1 time.Time
func (*MockBackend_Expecter) GetInstance ¶
func (_e *MockBackend_Expecter) GetInstance(context1 interface{}, ref interface{}) *MockBackend_GetInstance_Call
GetInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
func (*MockBackend_Expecter) GetNetwork ¶
func (_e *MockBackend_Expecter) GetNetwork(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_GetNetwork_Call
GetNetwork is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
func (*MockBackend_Expecter) GetSandbox ¶
func (_e *MockBackend_Expecter) GetSandbox(context1 interface{}, s interface{}) *MockBackend_GetSandbox_Call
GetSandbox is a helper method to define mock.On call
- context1 context.Context
- s string
func (*MockBackend_Expecter) GetSandboxImage ¶
func (_e *MockBackend_Expecter) GetSandboxImage(context1 interface{}, s interface{}, s1 interface{}) *MockBackend_GetSandboxImage_Call
GetSandboxImage is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
func (*MockBackend_Expecter) InstanceForward ¶
func (_e *MockBackend_Expecter) InstanceForward(context1 interface{}, ref interface{}, n interface{}, s interface{}) *MockBackend_InstanceForward_Call
InstanceForward is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- n int64
- s string
func (*MockBackend_Expecter) ListInstances ¶
func (_e *MockBackend_Expecter) ListInstances(context1 interface{}, s interface{}) *MockBackend_ListInstances_Call
ListInstances is a helper method to define mock.On call
- context1 context.Context
- s string
func (*MockBackend_Expecter) ListNetworks ¶
func (_e *MockBackend_Expecter) ListNetworks(context1 interface{}, s interface{}) *MockBackend_ListNetworks_Call
ListNetworks is a helper method to define mock.On call
- context1 context.Context
- s string
func (*MockBackend_Expecter) ListSandboxes ¶
func (_e *MockBackend_Expecter) ListSandboxes(context1 interface{}) *MockBackend_ListSandboxes_Call
ListSandboxes is a helper method to define mock.On call
- context1 context.Context
func (*MockBackend_Expecter) ListSnapshots ¶
func (_e *MockBackend_Expecter) ListSnapshots(context1 interface{}, ref interface{}) *MockBackend_ListSnapshots_Call
ListSnapshots is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
func (*MockBackend_Expecter) OpenExec ¶
func (_e *MockBackend_Expecter) OpenExec(context1 interface{}, execRequest interface{}) *MockBackend_OpenExec_Call
OpenExec is a helper method to define mock.On call
- context1 context.Context
- execRequest compute.ExecRequest
func (*MockBackend_Expecter) PeerNetworks ¶
func (_e *MockBackend_Expecter) PeerNetworks(context1 interface{}, s interface{}, s1 interface{}, s2 interface{}) *MockBackend_PeerNetworks_Call
PeerNetworks is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
- s2 string
func (*MockBackend_Expecter) PinSandbox ¶ added in v0.1.5
func (_e *MockBackend_Expecter) PinSandbox(context1 interface{}, s interface{}, b interface{}, s1 interface{}, time1 interface{}) *MockBackend_PinSandbox_Call
PinSandbox is a helper method to define mock.On call
- context1 context.Context
- s string
- b bool
- s1 string
- time1 time.Time
func (*MockBackend_Expecter) PublishInstance ¶
func (_e *MockBackend_Expecter) PublishInstance(context1 interface{}, ref interface{}, s interface{}) *MockBackend_PublishInstance_Call
PublishInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) ReadBinaryFile ¶
func (_e *MockBackend_Expecter) ReadBinaryFile(context1 interface{}, ref interface{}, s interface{}) *MockBackend_ReadBinaryFile_Call
ReadBinaryFile is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) ReadFile ¶
func (_e *MockBackend_Expecter) ReadFile(context1 interface{}, fileReadRequest interface{}) *MockBackend_ReadFile_Call
ReadFile is a helper method to define mock.On call
- context1 context.Context
- fileReadRequest compute.FileReadRequest
func (*MockBackend_Expecter) RemoveACLRule ¶
func (_e *MockBackend_Expecter) RemoveACLRule(context1 interface{}, s interface{}, s1 interface{}, s2 interface{}) *MockBackend_RemoveACLRule_Call
RemoveACLRule is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
- s2 string
func (*MockBackend_Expecter) RestartInstance ¶
func (_e *MockBackend_Expecter) RestartInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_RestartInstance_Call
RestartInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- b bool
func (*MockBackend_Expecter) RestoreSnapshot ¶
func (_e *MockBackend_Expecter) RestoreSnapshot(context1 interface{}, ref interface{}, s interface{}) *MockBackend_RestoreSnapshot_Call
RestoreSnapshot is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- s string
func (*MockBackend_Expecter) StartInstance ¶
func (_e *MockBackend_Expecter) StartInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_StartInstance_Call
StartInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- b bool
func (*MockBackend_Expecter) StopInstance ¶
func (_e *MockBackend_Expecter) StopInstance(context1 interface{}, ref interface{}, b interface{}) *MockBackend_StopInstance_Call
StopInstance is a helper method to define mock.On call
- context1 context.Context
- ref compute.Ref
- b bool
func (*MockBackend_Expecter) WaitInstance ¶
func (_e *MockBackend_Expecter) WaitInstance(context1 interface{}, waitRequest interface{}) *MockBackend_WaitInstance_Call
WaitInstance is a helper method to define mock.On call
- context1 context.Context
- waitRequest compute.WaitRequest
func (*MockBackend_Expecter) WriteFile ¶
func (_e *MockBackend_Expecter) WriteFile(context1 interface{}, fileWriteRequest interface{}) *MockBackend_WriteFile_Call
WriteFile is a helper method to define mock.On call
- context1 context.Context
- fileWriteRequest compute.FileWriteRequest
type MockBackend_ExtendSandbox_Call ¶
MockBackend_ExtendSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtendSandbox'
func (*MockBackend_ExtendSandbox_Call) Return ¶
func (_c *MockBackend_ExtendSandbox_Call) Return(sandbox compute.Sandbox, err error) *MockBackend_ExtendSandbox_Call
func (*MockBackend_ExtendSandbox_Call) Run ¶
func (_c *MockBackend_ExtendSandbox_Call) Run(run func(context1 context.Context, s string, time1 time.Time)) *MockBackend_ExtendSandbox_Call
func (*MockBackend_ExtendSandbox_Call) RunAndReturn ¶
func (_c *MockBackend_ExtendSandbox_Call) RunAndReturn(run func(context1 context.Context, s string, time1 time.Time) (compute.Sandbox, error)) *MockBackend_ExtendSandbox_Call
type MockBackend_GetInstance_Call ¶
MockBackend_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance'
func (*MockBackend_GetInstance_Call) Return ¶
func (_c *MockBackend_GetInstance_Call) Return(instance compute.Instance, err error) *MockBackend_GetInstance_Call
func (*MockBackend_GetInstance_Call) Run ¶
func (_c *MockBackend_GetInstance_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_GetInstance_Call
func (*MockBackend_GetInstance_Call) RunAndReturn ¶
func (_c *MockBackend_GetInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref) (compute.Instance, error)) *MockBackend_GetInstance_Call
type MockBackend_GetNetwork_Call ¶
MockBackend_GetNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetwork'
func (*MockBackend_GetNetwork_Call) Return ¶
func (_c *MockBackend_GetNetwork_Call) Return(network compute.Network, err error) *MockBackend_GetNetwork_Call
func (*MockBackend_GetNetwork_Call) Run ¶
func (_c *MockBackend_GetNetwork_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_GetNetwork_Call
func (*MockBackend_GetNetwork_Call) RunAndReturn ¶
func (_c *MockBackend_GetNetwork_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) (compute.Network, error)) *MockBackend_GetNetwork_Call
type MockBackend_GetSandboxImage_Call ¶
MockBackend_GetSandboxImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSandboxImage'
func (*MockBackend_GetSandboxImage_Call) Return ¶
func (_c *MockBackend_GetSandboxImage_Call) Return(catalogImage compute.CatalogImage, err error) *MockBackend_GetSandboxImage_Call
func (*MockBackend_GetSandboxImage_Call) Run ¶
func (_c *MockBackend_GetSandboxImage_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockBackend_GetSandboxImage_Call
func (*MockBackend_GetSandboxImage_Call) RunAndReturn ¶
func (_c *MockBackend_GetSandboxImage_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) (compute.CatalogImage, error)) *MockBackend_GetSandboxImage_Call
type MockBackend_GetSandbox_Call ¶
MockBackend_GetSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSandbox'
func (*MockBackend_GetSandbox_Call) Return ¶
func (_c *MockBackend_GetSandbox_Call) Return(sandbox compute.Sandbox, err error) *MockBackend_GetSandbox_Call
func (*MockBackend_GetSandbox_Call) Run ¶
func (_c *MockBackend_GetSandbox_Call) Run(run func(context1 context.Context, s string)) *MockBackend_GetSandbox_Call
func (*MockBackend_GetSandbox_Call) RunAndReturn ¶
func (_c *MockBackend_GetSandbox_Call) RunAndReturn(run func(context1 context.Context, s string) (compute.Sandbox, error)) *MockBackend_GetSandbox_Call
type MockBackend_InstanceForward_Call ¶
MockBackend_InstanceForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstanceForward'
func (*MockBackend_InstanceForward_Call) Return ¶
func (_c *MockBackend_InstanceForward_Call) Return(forward compute.Forward, err error) *MockBackend_InstanceForward_Call
func (*MockBackend_InstanceForward_Call) Run ¶
func (_c *MockBackend_InstanceForward_Call) Run(run func(context1 context.Context, ref compute.Ref, n int64, s string)) *MockBackend_InstanceForward_Call
func (*MockBackend_InstanceForward_Call) RunAndReturn ¶
type MockBackend_ListInstances_Call ¶
MockBackend_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances'
func (*MockBackend_ListInstances_Call) Return ¶
func (_c *MockBackend_ListInstances_Call) Return(instances []compute.Instance, err error) *MockBackend_ListInstances_Call
func (*MockBackend_ListInstances_Call) Run ¶
func (_c *MockBackend_ListInstances_Call) Run(run func(context1 context.Context, s string)) *MockBackend_ListInstances_Call
func (*MockBackend_ListInstances_Call) RunAndReturn ¶
func (_c *MockBackend_ListInstances_Call) RunAndReturn(run func(context1 context.Context, s string) ([]compute.Instance, error)) *MockBackend_ListInstances_Call
type MockBackend_ListNetworks_Call ¶
MockBackend_ListNetworks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNetworks'
func (*MockBackend_ListNetworks_Call) Return ¶
func (_c *MockBackend_ListNetworks_Call) Return(networks []compute.Network, err error) *MockBackend_ListNetworks_Call
func (*MockBackend_ListNetworks_Call) Run ¶
func (_c *MockBackend_ListNetworks_Call) Run(run func(context1 context.Context, s string)) *MockBackend_ListNetworks_Call
func (*MockBackend_ListNetworks_Call) RunAndReturn ¶
func (_c *MockBackend_ListNetworks_Call) RunAndReturn(run func(context1 context.Context, s string) ([]compute.Network, error)) *MockBackend_ListNetworks_Call
type MockBackend_ListSandboxes_Call ¶
MockBackend_ListSandboxes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSandboxes'
func (*MockBackend_ListSandboxes_Call) Return ¶
func (_c *MockBackend_ListSandboxes_Call) Return(sandboxs []compute.Sandbox, err error) *MockBackend_ListSandboxes_Call
func (*MockBackend_ListSandboxes_Call) Run ¶
func (_c *MockBackend_ListSandboxes_Call) Run(run func(context1 context.Context)) *MockBackend_ListSandboxes_Call
func (*MockBackend_ListSandboxes_Call) RunAndReturn ¶
func (_c *MockBackend_ListSandboxes_Call) RunAndReturn(run func(context1 context.Context) ([]compute.Sandbox, error)) *MockBackend_ListSandboxes_Call
type MockBackend_ListSnapshots_Call ¶
MockBackend_ListSnapshots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSnapshots'
func (*MockBackend_ListSnapshots_Call) Return ¶
func (_c *MockBackend_ListSnapshots_Call) Return(snapshots []compute.Snapshot, err error) *MockBackend_ListSnapshots_Call
func (*MockBackend_ListSnapshots_Call) Run ¶
func (_c *MockBackend_ListSnapshots_Call) Run(run func(context1 context.Context, ref compute.Ref)) *MockBackend_ListSnapshots_Call
func (*MockBackend_ListSnapshots_Call) RunAndReturn ¶
func (_c *MockBackend_ListSnapshots_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref) ([]compute.Snapshot, error)) *MockBackend_ListSnapshots_Call
type MockBackend_OpenExec_Call ¶
MockBackend_OpenExec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenExec'
func (*MockBackend_OpenExec_Call) Return ¶
func (_c *MockBackend_OpenExec_Call) Return(readWriteCloser io.ReadWriteCloser, err error) *MockBackend_OpenExec_Call
func (*MockBackend_OpenExec_Call) Run ¶
func (_c *MockBackend_OpenExec_Call) Run(run func(context1 context.Context, execRequest compute.ExecRequest)) *MockBackend_OpenExec_Call
func (*MockBackend_OpenExec_Call) RunAndReturn ¶
func (_c *MockBackend_OpenExec_Call) RunAndReturn(run func(context1 context.Context, execRequest compute.ExecRequest) (io.ReadWriteCloser, error)) *MockBackend_OpenExec_Call
type MockBackend_PeerNetworks_Call ¶
MockBackend_PeerNetworks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PeerNetworks'
func (*MockBackend_PeerNetworks_Call) Return ¶
func (_c *MockBackend_PeerNetworks_Call) Return(err error) *MockBackend_PeerNetworks_Call
func (*MockBackend_PeerNetworks_Call) Run ¶
func (_c *MockBackend_PeerNetworks_Call) Run(run func(context1 context.Context, s string, s1 string, s2 string)) *MockBackend_PeerNetworks_Call
func (*MockBackend_PeerNetworks_Call) RunAndReturn ¶
func (_c *MockBackend_PeerNetworks_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, s2 string) error) *MockBackend_PeerNetworks_Call
type MockBackend_PinSandbox_Call ¶ added in v0.1.5
MockBackend_PinSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PinSandbox'
func (*MockBackend_PinSandbox_Call) Return ¶ added in v0.1.5
func (_c *MockBackend_PinSandbox_Call) Return(sandbox compute.Sandbox, err error) *MockBackend_PinSandbox_Call
func (*MockBackend_PinSandbox_Call) Run ¶ added in v0.1.5
func (_c *MockBackend_PinSandbox_Call) Run(run func(context1 context.Context, s string, b bool, s1 string, time1 time.Time)) *MockBackend_PinSandbox_Call
func (*MockBackend_PinSandbox_Call) RunAndReturn ¶ added in v0.1.5
type MockBackend_PublishInstance_Call ¶
MockBackend_PublishInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishInstance'
func (*MockBackend_PublishInstance_Call) Return ¶
func (_c *MockBackend_PublishInstance_Call) Return(s1 string, err error) *MockBackend_PublishInstance_Call
func (*MockBackend_PublishInstance_Call) Run ¶
func (_c *MockBackend_PublishInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_PublishInstance_Call
func (*MockBackend_PublishInstance_Call) RunAndReturn ¶
func (_c *MockBackend_PublishInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) (string, error)) *MockBackend_PublishInstance_Call
type MockBackend_ReadBinaryFile_Call ¶
MockBackend_ReadBinaryFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBinaryFile'
func (*MockBackend_ReadBinaryFile_Call) Return ¶
func (_c *MockBackend_ReadBinaryFile_Call) Return(readCloser io.ReadCloser, err error) *MockBackend_ReadBinaryFile_Call
func (*MockBackend_ReadBinaryFile_Call) Run ¶
func (_c *MockBackend_ReadBinaryFile_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_ReadBinaryFile_Call
func (*MockBackend_ReadBinaryFile_Call) RunAndReturn ¶
func (_c *MockBackend_ReadBinaryFile_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) (io.ReadCloser, error)) *MockBackend_ReadBinaryFile_Call
type MockBackend_ReadFile_Call ¶
MockBackend_ReadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFile'
func (*MockBackend_ReadFile_Call) Return ¶
func (_c *MockBackend_ReadFile_Call) Return(fileReadResult compute.FileReadResult, err error) *MockBackend_ReadFile_Call
func (*MockBackend_ReadFile_Call) Run ¶
func (_c *MockBackend_ReadFile_Call) Run(run func(context1 context.Context, fileReadRequest compute.FileReadRequest)) *MockBackend_ReadFile_Call
func (*MockBackend_ReadFile_Call) RunAndReturn ¶
func (_c *MockBackend_ReadFile_Call) RunAndReturn(run func(context1 context.Context, fileReadRequest compute.FileReadRequest) (compute.FileReadResult, error)) *MockBackend_ReadFile_Call
type MockBackend_RemoveACLRule_Call ¶
MockBackend_RemoveACLRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveACLRule'
func (*MockBackend_RemoveACLRule_Call) Return ¶
func (_c *MockBackend_RemoveACLRule_Call) Return(err error) *MockBackend_RemoveACLRule_Call
func (*MockBackend_RemoveACLRule_Call) Run ¶
func (_c *MockBackend_RemoveACLRule_Call) Run(run func(context1 context.Context, s string, s1 string, s2 string)) *MockBackend_RemoveACLRule_Call
func (*MockBackend_RemoveACLRule_Call) RunAndReturn ¶
func (_c *MockBackend_RemoveACLRule_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, s2 string) error) *MockBackend_RemoveACLRule_Call
type MockBackend_RestartInstance_Call ¶
MockBackend_RestartInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestartInstance'
func (*MockBackend_RestartInstance_Call) Return ¶
func (_c *MockBackend_RestartInstance_Call) Return(instance compute.Instance, err error) *MockBackend_RestartInstance_Call
func (*MockBackend_RestartInstance_Call) Run ¶
func (_c *MockBackend_RestartInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_RestartInstance_Call
func (*MockBackend_RestartInstance_Call) RunAndReturn ¶
func (_c *MockBackend_RestartInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)) *MockBackend_RestartInstance_Call
type MockBackend_RestoreSnapshot_Call ¶
MockBackend_RestoreSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestoreSnapshot'
func (*MockBackend_RestoreSnapshot_Call) Return ¶
func (_c *MockBackend_RestoreSnapshot_Call) Return(err error) *MockBackend_RestoreSnapshot_Call
func (*MockBackend_RestoreSnapshot_Call) Run ¶
func (_c *MockBackend_RestoreSnapshot_Call) Run(run func(context1 context.Context, ref compute.Ref, s string)) *MockBackend_RestoreSnapshot_Call
func (*MockBackend_RestoreSnapshot_Call) RunAndReturn ¶
func (_c *MockBackend_RestoreSnapshot_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string) error) *MockBackend_RestoreSnapshot_Call
type MockBackend_StartInstance_Call ¶
MockBackend_StartInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartInstance'
func (*MockBackend_StartInstance_Call) Return ¶
func (_c *MockBackend_StartInstance_Call) Return(instance compute.Instance, err error) *MockBackend_StartInstance_Call
func (*MockBackend_StartInstance_Call) Run ¶
func (_c *MockBackend_StartInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_StartInstance_Call
func (*MockBackend_StartInstance_Call) RunAndReturn ¶
func (_c *MockBackend_StartInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)) *MockBackend_StartInstance_Call
type MockBackend_StopInstance_Call ¶
MockBackend_StopInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopInstance'
func (*MockBackend_StopInstance_Call) Return ¶
func (_c *MockBackend_StopInstance_Call) Return(instance compute.Instance, err error) *MockBackend_StopInstance_Call
func (*MockBackend_StopInstance_Call) Run ¶
func (_c *MockBackend_StopInstance_Call) Run(run func(context1 context.Context, ref compute.Ref, b bool)) *MockBackend_StopInstance_Call
func (*MockBackend_StopInstance_Call) RunAndReturn ¶
func (_c *MockBackend_StopInstance_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, b bool) (compute.Instance, error)) *MockBackend_StopInstance_Call
type MockBackend_WaitInstance_Call ¶
MockBackend_WaitInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitInstance'
func (*MockBackend_WaitInstance_Call) Return ¶
func (_c *MockBackend_WaitInstance_Call) Return(waitResult compute.WaitResult, err error) *MockBackend_WaitInstance_Call
func (*MockBackend_WaitInstance_Call) Run ¶
func (_c *MockBackend_WaitInstance_Call) Run(run func(context1 context.Context, waitRequest compute.WaitRequest)) *MockBackend_WaitInstance_Call
func (*MockBackend_WaitInstance_Call) RunAndReturn ¶
func (_c *MockBackend_WaitInstance_Call) RunAndReturn(run func(context1 context.Context, waitRequest compute.WaitRequest) (compute.WaitResult, error)) *MockBackend_WaitInstance_Call
type MockBackend_WriteFile_Call ¶
MockBackend_WriteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteFile'
func (*MockBackend_WriteFile_Call) Return ¶
func (_c *MockBackend_WriteFile_Call) Return(fileWriteResult compute.FileWriteResult, err error) *MockBackend_WriteFile_Call
func (*MockBackend_WriteFile_Call) Run ¶
func (_c *MockBackend_WriteFile_Call) Run(run func(context1 context.Context, fileWriteRequest compute.FileWriteRequest)) *MockBackend_WriteFile_Call
func (*MockBackend_WriteFile_Call) RunAndReturn ¶
func (_c *MockBackend_WriteFile_Call) RunAndReturn(run func(context1 context.Context, fileWriteRequest compute.FileWriteRequest) (compute.FileWriteResult, error)) *MockBackend_WriteFile_Call
type MockPendingInstance ¶
MockPendingInstance is an autogenerated mock type for the PendingInstance type
func NewMockPendingInstance ¶
func NewMockPendingInstance(t interface {
mock.TestingT
Cleanup(func())
}) *MockPendingInstance
NewMockPendingInstance creates a new instance of MockPendingInstance. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockPendingInstance) EXPECT ¶
func (_m *MockPendingInstance) EXPECT() *MockPendingInstance_Expecter
type MockPendingInstance_Expecter ¶
type MockPendingInstance_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPendingInstance_Expecter) Wait ¶
func (_e *MockPendingInstance_Expecter) Wait(context1 interface{}) *MockPendingInstance_Wait_Call
Wait is a helper method to define mock.On call
- context1 context.Context
type MockPendingInstance_Wait_Call ¶
MockPendingInstance_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*MockPendingInstance_Wait_Call) Return ¶
func (_c *MockPendingInstance_Wait_Call) Return(instance compute.Instance, err error) *MockPendingInstance_Wait_Call
func (*MockPendingInstance_Wait_Call) Run ¶
func (_c *MockPendingInstance_Wait_Call) Run(run func(context1 context.Context)) *MockPendingInstance_Wait_Call
func (*MockPendingInstance_Wait_Call) RunAndReturn ¶
func (_c *MockPendingInstance_Wait_Call) RunAndReturn(run func(context1 context.Context) (compute.Instance, error)) *MockPendingInstance_Wait_Call