mocks

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

type MockBackend struct {
	mock.Mock
}

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

func (_mock *MockBackend) CreateSandbox(context1 context.Context, sandbox compute.Sandbox) error

CreateSandbox provides a mock function for the type MockBackend

func (*MockBackend) CreateSnapshot

func (_mock *MockBackend) CreateSnapshot(context1 context.Context, ref compute.Ref, s string) error

CreateSnapshot provides a mock function for the type MockBackend

func (*MockBackend) DeleteFile

func (_mock *MockBackend) DeleteFile(context1 context.Context, ref compute.Ref, s string) error

DeleteFile provides a mock function for the type MockBackend

func (*MockBackend) DeleteInstance

func (_mock *MockBackend) DeleteInstance(context1 context.Context, ref compute.Ref) error

DeleteInstance provides a mock function for the type MockBackend

func (*MockBackend) DeleteNetwork

func (_mock *MockBackend) DeleteNetwork(context1 context.Context, s string, s1 string) error

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

func (_mock *MockBackend) DeleteSnapshot(context1 context.Context, ref compute.Ref, s string) error

DeleteSnapshot provides a mock function for the type MockBackend

func (*MockBackend) DetachNIC

func (_mock *MockBackend) DetachNIC(context1 context.Context, ref compute.Ref, s string) error

DetachNIC 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

func (_mock *MockBackend) GetSandbox(context1 context.Context, s string) (compute.Sandbox, error)

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

func (_mock *MockBackend) ListSandboxes(context1 context.Context) ([]compute.Sandbox, error)

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

type MockBackend_AddACLRule_Call struct {
	*mock.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 (*MockBackend_AddACLRule_Call) Run

func (*MockBackend_AddACLRule_Call) RunAndReturn

func (_c *MockBackend_AddACLRule_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, aCLRule compute.ACLRule) (compute.ACLRule, error)) *MockBackend_AddACLRule_Call

type MockBackend_AttachNIC_Call

type MockBackend_AttachNIC_Call struct {
	*mock.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 (*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

func (_c *MockBackend_AttachNIC_Call) RunAndReturn(run func(context1 context.Context, ref compute.Ref, s string, s1 string, s2 string, s3 string) (compute.NIC, error)) *MockBackend_AttachNIC_Call

type MockBackend_BeginCreateInstance_Call

type MockBackend_BeginCreateInstance_Call struct {
	*mock.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 (*MockBackend_BeginCreateInstance_Call) Run

func (*MockBackend_BeginCreateInstance_Call) RunAndReturn

type MockBackend_CreateForward_Call

type MockBackend_CreateForward_Call struct {
	*mock.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 (*MockBackend_CreateForward_Call) Run

func (*MockBackend_CreateForward_Call) RunAndReturn

type MockBackend_CreateNetwork_Call

type MockBackend_CreateNetwork_Call struct {
	*mock.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 (*MockBackend_CreateNetwork_Call) Run

func (*MockBackend_CreateNetwork_Call) RunAndReturn

type MockBackend_CreateSandbox_Call

type MockBackend_CreateSandbox_Call struct {
	*mock.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 (*MockBackend_CreateSandbox_Call) Run

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

type MockBackend_CreateSnapshot_Call struct {
	*mock.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 (*MockBackend_CreateSnapshot_Call) Run

func (*MockBackend_CreateSnapshot_Call) RunAndReturn

type MockBackend_DeleteFile_Call

type MockBackend_DeleteFile_Call struct {
	*mock.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 (*MockBackend_DeleteFile_Call) Run

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

type MockBackend_DeleteInstance_Call struct {
	*mock.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 (*MockBackend_DeleteInstance_Call) Run

func (*MockBackend_DeleteInstance_Call) RunAndReturn

type MockBackend_DeleteNetwork_Call

type MockBackend_DeleteNetwork_Call struct {
	*mock.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 (*MockBackend_DeleteNetwork_Call) Run

func (*MockBackend_DeleteNetwork_Call) RunAndReturn

type MockBackend_DeleteSandbox_Call

type MockBackend_DeleteSandbox_Call struct {
	*mock.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 (*MockBackend_DeleteSandbox_Call) Run

func (*MockBackend_DeleteSandbox_Call) RunAndReturn

type MockBackend_DeleteSnapshot_Call

type MockBackend_DeleteSnapshot_Call struct {
	*mock.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 (*MockBackend_DeleteSnapshot_Call) Run

func (*MockBackend_DeleteSnapshot_Call) RunAndReturn

type MockBackend_DetachNIC_Call

type MockBackend_DetachNIC_Call struct {
	*mock.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 (*MockBackend_DetachNIC_Call) Run

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

type MockBackend_Exec_Call struct {
	*mock.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 (*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

type MockBackend_ExtendSandbox_Call struct {
	*mock.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 (*MockBackend_ExtendSandbox_Call) Run

func (*MockBackend_ExtendSandbox_Call) RunAndReturn

type MockBackend_GetInstance_Call

type MockBackend_GetInstance_Call struct {
	*mock.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 (*MockBackend_GetInstance_Call) Run

func (*MockBackend_GetInstance_Call) RunAndReturn

type MockBackend_GetNetwork_Call

type MockBackend_GetNetwork_Call struct {
	*mock.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 (*MockBackend_GetNetwork_Call) Run

func (*MockBackend_GetNetwork_Call) RunAndReturn

type MockBackend_GetSandboxImage_Call

type MockBackend_GetSandboxImage_Call struct {
	*mock.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 (*MockBackend_GetSandboxImage_Call) Run

func (*MockBackend_GetSandboxImage_Call) RunAndReturn

type MockBackend_GetSandbox_Call

type MockBackend_GetSandbox_Call struct {
	*mock.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 (*MockBackend_GetSandbox_Call) Run

func (*MockBackend_GetSandbox_Call) RunAndReturn

type MockBackend_InstanceForward_Call

type MockBackend_InstanceForward_Call struct {
	*mock.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 (*MockBackend_InstanceForward_Call) Run

func (*MockBackend_InstanceForward_Call) RunAndReturn

type MockBackend_ListInstances_Call

type MockBackend_ListInstances_Call struct {
	*mock.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 (*MockBackend_ListInstances_Call) Run

func (*MockBackend_ListInstances_Call) RunAndReturn

type MockBackend_ListNetworks_Call

type MockBackend_ListNetworks_Call struct {
	*mock.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 (*MockBackend_ListNetworks_Call) Run

func (*MockBackend_ListNetworks_Call) RunAndReturn

type MockBackend_ListSandboxes_Call

type MockBackend_ListSandboxes_Call struct {
	*mock.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 (*MockBackend_ListSandboxes_Call) Run

func (*MockBackend_ListSandboxes_Call) RunAndReturn

type MockBackend_ListSnapshots_Call

type MockBackend_ListSnapshots_Call struct {
	*mock.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 (*MockBackend_ListSnapshots_Call) Run

func (*MockBackend_ListSnapshots_Call) RunAndReturn

type MockBackend_OpenExec_Call

type MockBackend_OpenExec_Call struct {
	*mock.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 (*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

type MockBackend_PeerNetworks_Call struct {
	*mock.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 (*MockBackend_PeerNetworks_Call) Run

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

type MockBackend_PinSandbox_Call struct {
	*mock.Call
}

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 (*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

func (_c *MockBackend_PinSandbox_Call) RunAndReturn(run func(context1 context.Context, s string, b bool, s1 string, time1 time.Time) (compute.Sandbox, error)) *MockBackend_PinSandbox_Call

type MockBackend_PublishInstance_Call

type MockBackend_PublishInstance_Call struct {
	*mock.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 (*MockBackend_PublishInstance_Call) Run

func (*MockBackend_PublishInstance_Call) RunAndReturn

type MockBackend_ReadBinaryFile_Call

type MockBackend_ReadBinaryFile_Call struct {
	*mock.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 (*MockBackend_ReadBinaryFile_Call) Run

func (*MockBackend_ReadBinaryFile_Call) RunAndReturn

type MockBackend_ReadFile_Call

type MockBackend_ReadFile_Call struct {
	*mock.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 (*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

type MockBackend_RemoveACLRule_Call struct {
	*mock.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 (*MockBackend_RemoveACLRule_Call) Run

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

type MockBackend_RestartInstance_Call struct {
	*mock.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 (*MockBackend_RestartInstance_Call) Run

func (*MockBackend_RestartInstance_Call) RunAndReturn

type MockBackend_RestoreSnapshot_Call

type MockBackend_RestoreSnapshot_Call struct {
	*mock.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 (*MockBackend_RestoreSnapshot_Call) Run

func (*MockBackend_RestoreSnapshot_Call) RunAndReturn

type MockBackend_StartInstance_Call

type MockBackend_StartInstance_Call struct {
	*mock.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 (*MockBackend_StartInstance_Call) Run

func (*MockBackend_StartInstance_Call) RunAndReturn

type MockBackend_StopInstance_Call

type MockBackend_StopInstance_Call struct {
	*mock.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 (*MockBackend_StopInstance_Call) Run

func (*MockBackend_StopInstance_Call) RunAndReturn

type MockBackend_WaitInstance_Call

type MockBackend_WaitInstance_Call struct {
	*mock.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 (*MockBackend_WaitInstance_Call) Run

func (*MockBackend_WaitInstance_Call) RunAndReturn

type MockBackend_WriteFile_Call

type MockBackend_WriteFile_Call struct {
	*mock.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 (*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

type MockPendingInstance

type MockPendingInstance struct {
	mock.Mock
}

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 (*MockPendingInstance) Wait

func (_mock *MockPendingInstance) Wait(context1 context.Context) (compute.Instance, error)

Wait provides a mock function for the type MockPendingInstance

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

type MockPendingInstance_Wait_Call struct {
	*mock.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 (*MockPendingInstance_Wait_Call) Run

func (*MockPendingInstance_Wait_Call) RunAndReturn

Jump to

Keyboard shortcuts

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