mock_models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Package mock_models is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommand

type MockCommand struct {
	// contains filtered or unexported fields
}

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommand) Run

func (m *MockCommand) Run(arg0 string, arg1 []string) error

Run mocks base method.

type MockCommandMockRecorder

type MockCommandMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) Run

func (mr *MockCommandMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

type MockDisk

type MockDisk struct {
	// contains filtered or unexported fields
}

MockDisk is a mock of Disk interface.

func NewMockDisk

func NewMockDisk(ctrl *gomock.Controller) *MockDisk

NewMockDisk creates a new mock instance.

func (*MockDisk) Create

func (m *MockDisk) Create(arg0 string, arg1 uuid.UUID) error

Create mocks base method.

func (*MockDisk) Delete

func (m *MockDisk) Delete(arg0 string, arg1 uuid.UUID) error

Delete mocks base method.

func (*MockDisk) EXPECT

func (m *MockDisk) EXPECT() *MockDiskMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockDiskMockRecorder

type MockDiskMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiskMockRecorder is the mock recorder for MockDisk.

func (*MockDiskMockRecorder) Create

func (mr *MockDiskMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDiskMockRecorder) Delete

func (mr *MockDiskMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockHostStatAccess

type MockHostStatAccess struct {
	// contains filtered or unexported fields
}

MockHostStatAccess is a mock of HostStatAccess interface.

func NewMockHostStatAccess

func NewMockHostStatAccess(ctrl *gomock.Controller) *MockHostStatAccess

NewMockHostStatAccess creates a new mock instance.

func (*MockHostStatAccess) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHostStatAccess) GetCpu

func (m *MockHostStatAccess) GetCpu() (entity.Cpu, error)

GetCpu mocks base method.

func (*MockHostStatAccess) GetMem

func (m *MockHostStatAccess) GetMem() (entity.Memory, error)

GetMem mocks base method.

func (*MockHostStatAccess) GetStoragePools

func (m *MockHostStatAccess) GetStoragePools() ([]entity.StoragePool, error)

GetStoragePools mocks base method.

type MockHostStatAccessMockRecorder

type MockHostStatAccessMockRecorder struct {
	// contains filtered or unexported fields
}

MockHostStatAccessMockRecorder is the mock recorder for MockHostStatAccess.

func (*MockHostStatAccessMockRecorder) GetCpu

GetCpu indicates an expected call of GetCpu.

func (*MockHostStatAccessMockRecorder) GetMem

GetMem indicates an expected call of GetMem.

func (*MockHostStatAccessMockRecorder) GetStoragePools

func (mr *MockHostStatAccessMockRecorder) GetStoragePools() *gomock.Call

GetStoragePools indicates an expected call of GetStoragePools.

type MockHostUseCase

type MockHostUseCase struct {
	// contains filtered or unexported fields
}

MockHostUseCase is a mock of HostUseCase interface.

func NewMockHostUseCase

func NewMockHostUseCase(ctrl *gomock.Controller) *MockHostUseCase

NewMockHostUseCase creates a new mock instance.

func (*MockHostUseCase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHostUseCase) Get

func (m *MockHostUseCase) Get() (entity.Host, error)

Get mocks base method.

type MockHostUseCaseMockRecorder

type MockHostUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockHostUseCaseMockRecorder is the mock recorder for MockHostUseCase.

func (*MockHostUseCaseMockRecorder) Get

Get indicates an expected call of Get.

type MockID

type MockID struct {
	// contains filtered or unexported fields
}

MockID is a mock of ID interface.

func NewMockID

func NewMockID(ctrl *gomock.Controller) *MockID

NewMockID creates a new mock instance.

func (*MockID) EXPECT

func (m *MockID) EXPECT() *MockIDMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockID) GenID

func (m *MockID) GenID() (uuid.UUID, error)

GenID mocks base method.

type MockIDMockRecorder

type MockIDMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDMockRecorder is the mock recorder for MockID.

func (*MockIDMockRecorder) GenID

func (mr *MockIDMockRecorder) GenID() *gomock.Call

GenID indicates an expected call of GenID.

type MockSocket

type MockSocket struct {
	// contains filtered or unexported fields
}

MockSocket is a mock of Socket interface.

func NewMockSocket

func NewMockSocket(ctrl *gomock.Controller) *MockSocket

NewMockSocket creates a new mock instance.

func (*MockSocket) Connect

func (m *MockSocket) Connect() error

Connect mocks base method.

func (*MockSocket) Create

func (m *MockSocket) Create(arg0 uuid.UUID) (interface{}, error)

Create mocks base method.

func (*MockSocket) Delete

func (m *MockSocket) Delete(arg0 uuid.UUID) error

Delete mocks base method.

func (*MockSocket) EXPECT

func (m *MockSocket) EXPECT() *MockSocketMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSocket) List

func (m *MockSocket) List() ([]string, error)

List mocks base method.

func (*MockSocket) SearchFor

func (m *MockSocket) SearchFor(arg0 uuid.UUID) bool

SearchFor mocks base method.

func (*MockSocket) Send

func (m *MockSocket) Send(arg0 []byte) error

Send mocks base method.

type MockSocketMockRecorder

type MockSocketMockRecorder struct {
	// contains filtered or unexported fields
}

MockSocketMockRecorder is the mock recorder for MockSocket.

func (*MockSocketMockRecorder) Connect

func (mr *MockSocketMockRecorder) Connect() *gomock.Call

Connect indicates an expected call of Connect.

func (*MockSocketMockRecorder) Create

func (mr *MockSocketMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSocketMockRecorder) Delete

func (mr *MockSocketMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSocketMockRecorder) List

func (mr *MockSocketMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockSocketMockRecorder) SearchFor

func (mr *MockSocketMockRecorder) SearchFor(arg0 interface{}) *gomock.Call

SearchFor indicates an expected call of SearchFor.

func (*MockSocketMockRecorder) Send

func (mr *MockSocketMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockStorageAccess

type MockStorageAccess struct {
	// contains filtered or unexported fields
}

MockStorageAccess is a mock of StorageAccess interface.

func NewMockStorageAccess

func NewMockStorageAccess(ctrl *gomock.Controller) *MockStorageAccess

NewMockStorageAccess creates a new mock instance.

func (*MockStorageAccess) Browse

func (m *MockStorageAccess) Browse() ([]models.Storage, error)

Browse mocks base method.

func (*MockStorageAccess) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorageAccess) Read

func (m *MockStorageAccess) Read(arg0 string) (models.Storage, error)

Read mocks base method.

type MockStorageAccessMockRecorder

type MockStorageAccessMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageAccessMockRecorder is the mock recorder for MockStorageAccess.

func (*MockStorageAccessMockRecorder) Browse

Browse indicates an expected call of Browse.

func (*MockStorageAccessMockRecorder) Read

func (mr *MockStorageAccessMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

type MockVmDataAccess

type MockVmDataAccess struct {
	// contains filtered or unexported fields
}

MockVmDataAccess is a mock of VmDataAccess interface.

func NewMockVmDataAccess

func NewMockVmDataAccess(ctrl *gomock.Controller) *MockVmDataAccess

NewMockVmDataAccess creates a new mock instance.

func (*MockVmDataAccess) Add

func (m *MockVmDataAccess) Add(arg0 entity.Vm) error

Add mocks base method.

func (*MockVmDataAccess) Browse

func (m *MockVmDataAccess) Browse() ([]entity.Vm, error)

Browse mocks base method.

func (*MockVmDataAccess) Delete

func (m *MockVmDataAccess) Delete(arg0 uuid.UUID) error

Delete mocks base method.

func (*MockVmDataAccess) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVmDataAccess) Edit

func (m *MockVmDataAccess) Edit(arg0 uuid.UUID, arg1 entity.VmCore) (entity.Vm, error)

Edit mocks base method.

func (*MockVmDataAccess) Read

func (m *MockVmDataAccess) Read(arg0 uuid.UUID) (entity.Vm, error)

Read mocks base method.

type MockVmDataAccessMockRecorder

type MockVmDataAccessMockRecorder struct {
	// contains filtered or unexported fields
}

MockVmDataAccessMockRecorder is the mock recorder for MockVmDataAccess.

func (*MockVmDataAccessMockRecorder) Add

func (mr *MockVmDataAccessMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockVmDataAccessMockRecorder) Browse

Browse indicates an expected call of Browse.

func (*MockVmDataAccessMockRecorder) Delete

func (mr *MockVmDataAccessMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVmDataAccessMockRecorder) Edit

func (mr *MockVmDataAccessMockRecorder) Edit(arg0, arg1 interface{}) *gomock.Call

Edit indicates an expected call of Edit.

func (*MockVmDataAccessMockRecorder) Read

func (mr *MockVmDataAccessMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

type MockVmUseCase

type MockVmUseCase struct {
	// contains filtered or unexported fields
}

MockVmUseCase is a mock of VmUseCase interface.

func NewMockVmUseCase

func NewMockVmUseCase(ctrl *gomock.Controller) *MockVmUseCase

NewMockVmUseCase creates a new mock instance.

func (*MockVmUseCase) Create

func (m *MockVmUseCase) Create(arg0 entity.VmCore) (entity.Vm, error)

Create mocks base method.

func (*MockVmUseCase) Delete

func (m *MockVmUseCase) Delete(arg0 uuid.UUID) error

Delete mocks base method.

func (*MockVmUseCase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVmUseCase) GetPower

func (m *MockVmUseCase) GetPower(arg0 uuid.UUID) models.State

GetPower mocks base method.

func (*MockVmUseCase) ReadAll

func (m *MockVmUseCase) ReadAll() ([]entity.Vm, error)

ReadAll mocks base method.

func (*MockVmUseCase) ReadById

func (m *MockVmUseCase) ReadById(arg0 uuid.UUID) (entity.Vm, error)

ReadById mocks base method.

func (*MockVmUseCase) Restart

func (m *MockVmUseCase) Restart(arg0 uuid.UUID) error

Restart mocks base method.

func (*MockVmUseCase) Shutdown

func (m *MockVmUseCase) Shutdown(arg0 uuid.UUID) error

Shutdown mocks base method.

func (*MockVmUseCase) Start

func (m *MockVmUseCase) Start(arg0 uuid.UUID) error

Start mocks base method.

func (*MockVmUseCase) Update

func (m *MockVmUseCase) Update(arg0 uuid.UUID, arg1 entity.VmCore) (entity.Vm, error)

Update mocks base method.

type MockVmUseCaseMockRecorder

type MockVmUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockVmUseCaseMockRecorder is the mock recorder for MockVmUseCase.

func (*MockVmUseCaseMockRecorder) Create

func (mr *MockVmUseCaseMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockVmUseCaseMockRecorder) Delete

func (mr *MockVmUseCaseMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVmUseCaseMockRecorder) GetPower

func (mr *MockVmUseCaseMockRecorder) GetPower(arg0 interface{}) *gomock.Call

GetPower indicates an expected call of GetPower.

func (*MockVmUseCaseMockRecorder) ReadAll

func (mr *MockVmUseCaseMockRecorder) ReadAll() *gomock.Call

ReadAll indicates an expected call of ReadAll.

func (*MockVmUseCaseMockRecorder) ReadById

func (mr *MockVmUseCaseMockRecorder) ReadById(arg0 interface{}) *gomock.Call

ReadById indicates an expected call of ReadById.

func (*MockVmUseCaseMockRecorder) Restart

func (mr *MockVmUseCaseMockRecorder) Restart(arg0 interface{}) *gomock.Call

Restart indicates an expected call of Restart.

func (*MockVmUseCaseMockRecorder) Shutdown

func (mr *MockVmUseCaseMockRecorder) Shutdown(arg0 interface{}) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockVmUseCaseMockRecorder) Start

func (mr *MockVmUseCaseMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockVmUseCaseMockRecorder) Update

func (mr *MockVmUseCaseMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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