Documentation
¶
Index ¶
- type Hypervisor
- func (_m *Hypervisor) Create(ctx context.Context, name string) (hypervisor.VirtualMachine, error)
- func (_m *Hypervisor) Delete(ctx context.Context, id string) error
- func (_m *Hypervisor) EXPECT() *Hypervisor_Expecter
- func (_m *Hypervisor) Init(ctx context.Context, config []byte) error
- func (_m *Hypervisor) List(ctx context.Context) ([]hypervisor.VirtualMachine, error)
- func (_m *Hypervisor) Shutdown(ctx context.Context) error
- type Hypervisor_Create_Call
- func (_c *Hypervisor_Create_Call) Return(_a0 hypervisor.VirtualMachine, _a1 error) *Hypervisor_Create_Call
- func (_c *Hypervisor_Create_Call) Run(run func(ctx context.Context, name string)) *Hypervisor_Create_Call
- func (_c *Hypervisor_Create_Call) RunAndReturn(run func(context.Context, string) (hypervisor.VirtualMachine, error)) *Hypervisor_Create_Call
- type Hypervisor_Delete_Call
- type Hypervisor_Expecter
- func (_e *Hypervisor_Expecter) Create(ctx interface{}, name interface{}) *Hypervisor_Create_Call
- func (_e *Hypervisor_Expecter) Delete(ctx interface{}, id interface{}) *Hypervisor_Delete_Call
- func (_e *Hypervisor_Expecter) Init(ctx interface{}, config interface{}) *Hypervisor_Init_Call
- func (_e *Hypervisor_Expecter) List(ctx interface{}) *Hypervisor_List_Call
- func (_e *Hypervisor_Expecter) Shutdown(ctx interface{}) *Hypervisor_Shutdown_Call
- type Hypervisor_Init_Call
- type Hypervisor_List_Call
- func (_c *Hypervisor_List_Call) Return(_a0 []hypervisor.VirtualMachine, _a1 error) *Hypervisor_List_Call
- func (_c *Hypervisor_List_Call) Run(run func(ctx context.Context)) *Hypervisor_List_Call
- func (_c *Hypervisor_List_Call) RunAndReturn(run func(context.Context) ([]hypervisor.VirtualMachine, error)) *Hypervisor_List_Call
- type Hypervisor_Shutdown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hypervisor ¶
Hypervisor is an autogenerated mock type for the Hypervisor type
func NewHypervisor ¶
func NewHypervisor(t interface {
mock.TestingT
Cleanup(func())
}) *Hypervisor
NewHypervisor creates a new instance of Hypervisor. 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 (*Hypervisor) Create ¶
func (_m *Hypervisor) Create(ctx context.Context, name string) (hypervisor.VirtualMachine, error)
Create provides a mock function with given fields: ctx, name
func (*Hypervisor) Delete ¶
func (_m *Hypervisor) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*Hypervisor) EXPECT ¶
func (_m *Hypervisor) EXPECT() *Hypervisor_Expecter
func (*Hypervisor) Init ¶
func (_m *Hypervisor) Init(ctx context.Context, config []byte) error
Init provides a mock function with given fields: ctx, config
func (*Hypervisor) List ¶
func (_m *Hypervisor) List(ctx context.Context) ([]hypervisor.VirtualMachine, error)
List provides a mock function with given fields: ctx
type Hypervisor_Create_Call ¶
Hypervisor_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Hypervisor_Create_Call) Return ¶
func (_c *Hypervisor_Create_Call) Return(_a0 hypervisor.VirtualMachine, _a1 error) *Hypervisor_Create_Call
func (*Hypervisor_Create_Call) Run ¶
func (_c *Hypervisor_Create_Call) Run(run func(ctx context.Context, name string)) *Hypervisor_Create_Call
func (*Hypervisor_Create_Call) RunAndReturn ¶ added in v0.3.0
func (_c *Hypervisor_Create_Call) RunAndReturn(run func(context.Context, string) (hypervisor.VirtualMachine, error)) *Hypervisor_Create_Call
type Hypervisor_Delete_Call ¶
Hypervisor_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Hypervisor_Delete_Call) Return ¶
func (_c *Hypervisor_Delete_Call) Return(_a0 error) *Hypervisor_Delete_Call
func (*Hypervisor_Delete_Call) Run ¶
func (_c *Hypervisor_Delete_Call) Run(run func(ctx context.Context, id string)) *Hypervisor_Delete_Call
func (*Hypervisor_Delete_Call) RunAndReturn ¶ added in v0.3.0
func (_c *Hypervisor_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Hypervisor_Delete_Call
type Hypervisor_Expecter ¶
type Hypervisor_Expecter struct {
// contains filtered or unexported fields
}
func (*Hypervisor_Expecter) Create ¶
func (_e *Hypervisor_Expecter) Create(ctx interface{}, name interface{}) *Hypervisor_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- name string
func (*Hypervisor_Expecter) Delete ¶
func (_e *Hypervisor_Expecter) Delete(ctx interface{}, id interface{}) *Hypervisor_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Hypervisor_Expecter) Init ¶
func (_e *Hypervisor_Expecter) Init(ctx interface{}, config interface{}) *Hypervisor_Init_Call
Init is a helper method to define mock.On call
- ctx context.Context
- config []byte
func (*Hypervisor_Expecter) List ¶
func (_e *Hypervisor_Expecter) List(ctx interface{}) *Hypervisor_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*Hypervisor_Expecter) Shutdown ¶
func (_e *Hypervisor_Expecter) Shutdown(ctx interface{}) *Hypervisor_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx context.Context
type Hypervisor_Init_Call ¶
Hypervisor_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*Hypervisor_Init_Call) Return ¶
func (_c *Hypervisor_Init_Call) Return(_a0 error) *Hypervisor_Init_Call
func (*Hypervisor_Init_Call) Run ¶
func (_c *Hypervisor_Init_Call) Run(run func(ctx context.Context, config []byte)) *Hypervisor_Init_Call
func (*Hypervisor_Init_Call) RunAndReturn ¶ added in v0.3.0
func (_c *Hypervisor_Init_Call) RunAndReturn(run func(context.Context, []byte) error) *Hypervisor_Init_Call
type Hypervisor_List_Call ¶
Hypervisor_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Hypervisor_List_Call) Return ¶
func (_c *Hypervisor_List_Call) Return(_a0 []hypervisor.VirtualMachine, _a1 error) *Hypervisor_List_Call
func (*Hypervisor_List_Call) Run ¶
func (_c *Hypervisor_List_Call) Run(run func(ctx context.Context)) *Hypervisor_List_Call
func (*Hypervisor_List_Call) RunAndReturn ¶ added in v0.3.0
func (_c *Hypervisor_List_Call) RunAndReturn(run func(context.Context) ([]hypervisor.VirtualMachine, error)) *Hypervisor_List_Call
type Hypervisor_Shutdown_Call ¶
Hypervisor_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Hypervisor_Shutdown_Call) Return ¶
func (_c *Hypervisor_Shutdown_Call) Return(_a0 error) *Hypervisor_Shutdown_Call
func (*Hypervisor_Shutdown_Call) Run ¶
func (_c *Hypervisor_Shutdown_Call) Run(run func(ctx context.Context)) *Hypervisor_Shutdown_Call
func (*Hypervisor_Shutdown_Call) RunAndReturn ¶ added in v0.3.0
func (_c *Hypervisor_Shutdown_Call) RunAndReturn(run func(context.Context) error) *Hypervisor_Shutdown_Call