mock

package
v0.3.9-5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCandidatePropertyGetter

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

MockCandidatePropertyGetter is a mock of CandidatePropertyGetter interface

func NewMockCandidatePropertyGetter

func NewMockCandidatePropertyGetter(ctrl *gomock.Controller) *MockCandidatePropertyGetter

NewMockCandidatePropertyGetter creates a new mock instance

func (*MockCandidatePropertyGetter) CPUArch

func (m *MockCandidatePropertyGetter) CPUArch() string

func (*MockCandidatePropertyGetter) Cloudprovider

Cloudprovider mocks base method

func (*MockCandidatePropertyGetter) CreatingGuestCount

func (m *MockCandidatePropertyGetter) CreatingGuestCount() int

CreatingGuestCount mocks base method

func (*MockCandidatePropertyGetter) DomainId

func (m *MockCandidatePropertyGetter) DomainId() string

DomainId mocks base method

func (*MockCandidatePropertyGetter) EXPECT

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

func (*MockCandidatePropertyGetter) Enabled

func (m *MockCandidatePropertyGetter) Enabled() bool

Enabled mocks base method

func (*MockCandidatePropertyGetter) FreeCPUCount

func (m *MockCandidatePropertyGetter) FreeCPUCount(arg0 bool) int64

FreeCPUCount mocks base method

func (*MockCandidatePropertyGetter) FreeMemorySize

func (m *MockCandidatePropertyGetter) FreeMemorySize(arg0 bool) int64

FreeMemorySize mocks base method

func (*MockCandidatePropertyGetter) GetAllClassMetadata

func (m *MockCandidatePropertyGetter) GetAllClassMetadata() (map[string]string, error)

GetAllClassMetadata mocks base method

func (*MockCandidatePropertyGetter) GetFreeGroupCount

func (m *MockCandidatePropertyGetter) GetFreeGroupCount(arg0 string) (int, error)

GetFreeGroupCount mocks base method

func (*MockCandidatePropertyGetter) GetFreePort

func (m *MockCandidatePropertyGetter) GetFreePort(arg0 string) int

GetFreePort mocks base method

func (*MockCandidatePropertyGetter) GetFreeStorageSizeOfType

func (m *MockCandidatePropertyGetter) GetFreeStorageSizeOfType(arg0 string, arg1 string, arg2 bool, arg3 int64) (int64, int64, error)

GetFreeStorageSizeOfType mocks base method

func (*MockCandidatePropertyGetter) GetIpmiInfo

func (m *MockCandidatePropertyGetter) GetIpmiInfo() types.SIPMIInfo

GetIpmiInfo mocks base method

func (*MockCandidatePropertyGetter) GetIsolatedDevice

func (m *MockCandidatePropertyGetter) GetIsolatedDevice(arg0 string) *core.IsolatedDeviceDesc

GetIsolatedDevice mocks base method

func (*MockCandidatePropertyGetter) GetIsolatedDevices

func (m *MockCandidatePropertyGetter) GetIsolatedDevices() []*core.IsolatedDeviceDesc

GetIsolatedDevices mocks base method

func (*MockCandidatePropertyGetter) GetNics

func (m *MockCandidatePropertyGetter) GetNics() []*types.SNic

GetNics mocks base method

func (*MockCandidatePropertyGetter) GetPendingUsage

func (m *MockCandidatePropertyGetter) GetPendingUsage() *models0.SPendingUsage

GetPendingUsage mocks base method

func (*MockCandidatePropertyGetter) GetQuotaKeys

GetQuotaKeys mocks base method

func (*MockCandidatePropertyGetter) Host

Host mocks base method

func (*MockCandidatePropertyGetter) HostSchedtags

func (m *MockCandidatePropertyGetter) HostSchedtags() []models.SSchedtag

HostSchedtags mocks base method

func (*MockCandidatePropertyGetter) HostStatus

func (m *MockCandidatePropertyGetter) HostStatus() string

HostStatus mocks base method

func (*MockCandidatePropertyGetter) HostType

func (m *MockCandidatePropertyGetter) HostType() string

HostType mocks base method

func (*MockCandidatePropertyGetter) Id

Id mocks base method

func (*MockCandidatePropertyGetter) InstanceGroups

func (m *MockCandidatePropertyGetter) InstanceGroups() map[string]*api.CandidateGroup

InstanceGroups mocks base method

func (*MockCandidatePropertyGetter) IsArmHost

func (m *MockCandidatePropertyGetter) IsArmHost() bool

func (*MockCandidatePropertyGetter) IsEmpty

func (m *MockCandidatePropertyGetter) IsEmpty() bool

IsEmpty mocks base method

func (*MockCandidatePropertyGetter) IsPublic

func (m *MockCandidatePropertyGetter) IsPublic() bool

IsPublic mocks base method

func (*MockCandidatePropertyGetter) KeywordPlural

func (m *MockCandidatePropertyGetter) KeywordPlural() string

KeywordPlural mocks base method

func (*MockCandidatePropertyGetter) Name

Name mocks base method

func (*MockCandidatePropertyGetter) NetInterfaces

func (m *MockCandidatePropertyGetter) NetInterfaces() map[string][]models.SNetInterface

NetInterfaces mocks base method

func (*MockCandidatePropertyGetter) Networks

Networks mocks base method

func (*MockCandidatePropertyGetter) OvnCapable

func (m *MockCandidatePropertyGetter) OvnCapable() bool

OvnCapable mocks base method

func (*MockCandidatePropertyGetter) ProjectGuests

func (m *MockCandidatePropertyGetter) ProjectGuests() map[string]int64

ProjectGuests mocks base method

func (*MockCandidatePropertyGetter) PublicScope

func (m *MockCandidatePropertyGetter) PublicScope() string

PublicScope mocks base method

func (*MockCandidatePropertyGetter) Region

Region mocks base method

func (*MockCandidatePropertyGetter) ResourceType

func (m *MockCandidatePropertyGetter) ResourceType() string

ResourceType mocks base method

func (*MockCandidatePropertyGetter) RunningCPUCount

func (m *MockCandidatePropertyGetter) RunningCPUCount() int64

RunningCPUCount mocks base method

func (*MockCandidatePropertyGetter) RunningMemorySize

func (m *MockCandidatePropertyGetter) RunningMemorySize() int64

RunningMemorySize mocks base method

func (*MockCandidatePropertyGetter) SharedDomains

func (m *MockCandidatePropertyGetter) SharedDomains() []string

SharedDomains mocks base method

func (*MockCandidatePropertyGetter) Sku

Sku mocks base method

func (*MockCandidatePropertyGetter) Status

func (m *MockCandidatePropertyGetter) Status() string

Status mocks base method

func (*MockCandidatePropertyGetter) StorageInfo

StorageInfo mocks base method

func (*MockCandidatePropertyGetter) Storages

Storages mocks base method

func (*MockCandidatePropertyGetter) TotalCPUCount

func (m *MockCandidatePropertyGetter) TotalCPUCount(arg0 bool) int64

TotalCPUCount mocks base method

func (*MockCandidatePropertyGetter) TotalMemorySize

func (m *MockCandidatePropertyGetter) TotalMemorySize(arg0 bool) int64

TotalMemorySize mocks base method

func (*MockCandidatePropertyGetter) UnusedGpuDevices

func (m *MockCandidatePropertyGetter) UnusedGpuDevices() []*core.IsolatedDeviceDesc

UnusedGpuDevices mocks base method

func (*MockCandidatePropertyGetter) UnusedIsolatedDevices

func (m *MockCandidatePropertyGetter) UnusedIsolatedDevices() []*core.IsolatedDeviceDesc

UnusedIsolatedDevices mocks base method

func (*MockCandidatePropertyGetter) UnusedIsolatedDevicesByModel

func (m *MockCandidatePropertyGetter) UnusedIsolatedDevicesByModel(arg0 string) []*core.IsolatedDeviceDesc

UnusedIsolatedDevicesByModel mocks base method

func (*MockCandidatePropertyGetter) UnusedIsolatedDevicesByType

func (m *MockCandidatePropertyGetter) UnusedIsolatedDevicesByType(arg0 string) []*core.IsolatedDeviceDesc

UnusedIsolatedDevicesByType mocks base method

func (*MockCandidatePropertyGetter) UnusedIsolatedDevicesByVendorModel

func (m *MockCandidatePropertyGetter) UnusedIsolatedDevicesByVendorModel(arg0 string) []*core.IsolatedDeviceDesc

UnusedIsolatedDevicesByVendorModel mocks base method

func (*MockCandidatePropertyGetter) Zone

Zone mocks base method

type MockCandidatePropertyGetterMockRecorder

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

MockCandidatePropertyGetterMockRecorder is the mock recorder for MockCandidatePropertyGetter

func (*MockCandidatePropertyGetterMockRecorder) Cloudprovider

Cloudprovider indicates an expected call of Cloudprovider

func (*MockCandidatePropertyGetterMockRecorder) CreatingGuestCount

func (mr *MockCandidatePropertyGetterMockRecorder) CreatingGuestCount() *gomock.Call

CreatingGuestCount indicates an expected call of CreatingGuestCount

func (*MockCandidatePropertyGetterMockRecorder) DomainId

DomainId indicates an expected call of DomainId

func (*MockCandidatePropertyGetterMockRecorder) Enabled

Enabled indicates an expected call of Enabled

func (*MockCandidatePropertyGetterMockRecorder) FreeCPUCount

func (mr *MockCandidatePropertyGetterMockRecorder) FreeCPUCount(arg0 interface{}) *gomock.Call

FreeCPUCount indicates an expected call of FreeCPUCount

func (*MockCandidatePropertyGetterMockRecorder) FreeMemorySize

func (mr *MockCandidatePropertyGetterMockRecorder) FreeMemorySize(arg0 interface{}) *gomock.Call

FreeMemorySize indicates an expected call of FreeMemorySize

func (*MockCandidatePropertyGetterMockRecorder) GetAllClassMetadata

func (mr *MockCandidatePropertyGetterMockRecorder) GetAllClassMetadata() *gomock.Call

GetAllClassMetadata indicates an expected call of InstanceGroups

func (*MockCandidatePropertyGetterMockRecorder) GetFreeGroupCount

func (mr *MockCandidatePropertyGetterMockRecorder) GetFreeGroupCount(arg0 interface{}) *gomock.Call

GetFreeGroupCount indicates an expected call of GetFreeGroupCount

func (*MockCandidatePropertyGetterMockRecorder) GetFreePort

func (mr *MockCandidatePropertyGetterMockRecorder) GetFreePort(arg0 interface{}) *gomock.Call

GetFreePort indicates an expected call of GetFreePort

func (*MockCandidatePropertyGetterMockRecorder) GetFreeStorageSizeOfType

func (mr *MockCandidatePropertyGetterMockRecorder) GetFreeStorageSizeOfType(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetFreeStorageSizeOfType indicates an expected call of GetFreeStorageSizeOfType

func (*MockCandidatePropertyGetterMockRecorder) GetIpmiInfo

GetIpmiInfo indicates an expected call of GetIpmiInfo

func (*MockCandidatePropertyGetterMockRecorder) GetIsolatedDevice

func (mr *MockCandidatePropertyGetterMockRecorder) GetIsolatedDevice(arg0 interface{}) *gomock.Call

GetIsolatedDevice indicates an expected call of GetIsolatedDevice

func (*MockCandidatePropertyGetterMockRecorder) GetIsolatedDevices

func (mr *MockCandidatePropertyGetterMockRecorder) GetIsolatedDevices() *gomock.Call

GetIsolatedDevices indicates an expected call of GetIsolatedDevices

func (*MockCandidatePropertyGetterMockRecorder) GetNics

GetIpmiInfo indicates an expected call of GetIpmiInfo

func (*MockCandidatePropertyGetterMockRecorder) GetPendingUsage

func (mr *MockCandidatePropertyGetterMockRecorder) GetPendingUsage() *gomock.Call

GetPendingUsage indicates an expected call of GetPendingUsage

func (*MockCandidatePropertyGetterMockRecorder) GetQuotaKeys

func (mr *MockCandidatePropertyGetterMockRecorder) GetQuotaKeys(arg0 interface{}) *gomock.Call

GetQuotaKeys indicates an expected call of GetQuotaKeys

func (*MockCandidatePropertyGetterMockRecorder) Host

Host indicates an expected call of Host

func (*MockCandidatePropertyGetterMockRecorder) HostSchedtags

HostSchedtags indicates an expected call of HostSchedtags

func (*MockCandidatePropertyGetterMockRecorder) HostStatus

HostStatus indicates an expected call of HostStatus

func (*MockCandidatePropertyGetterMockRecorder) HostType

HostType indicates an expected call of HostType

func (*MockCandidatePropertyGetterMockRecorder) Id

Id indicates an expected call of Id

func (*MockCandidatePropertyGetterMockRecorder) InstanceGroups

func (mr *MockCandidatePropertyGetterMockRecorder) InstanceGroups() *gomock.Call

InstanceGroups indicates an expected call of InstanceGroups

func (*MockCandidatePropertyGetterMockRecorder) IsEmpty

IsEmpty indicates an expected call of IsEmpty

func (*MockCandidatePropertyGetterMockRecorder) IsPublic

IsPublic indicates an expected call of IsPublic

func (*MockCandidatePropertyGetterMockRecorder) KeywordPlural

KeywordPlural indicates an expected call of KeywordPlural

func (*MockCandidatePropertyGetterMockRecorder) Name

Name indicates an expected call of Name

func (*MockCandidatePropertyGetterMockRecorder) NetInterfaces

NetInterfaces indicates an expected call of NetInterfaces

func (*MockCandidatePropertyGetterMockRecorder) Networks

Networks indicates an expected call of Networks

func (*MockCandidatePropertyGetterMockRecorder) OvnCapable

OvnCapable indicates an expected call of OvnCapable

func (*MockCandidatePropertyGetterMockRecorder) ProjectGuests

ProjectGuests indicates an expected call of ProjectGuests

func (*MockCandidatePropertyGetterMockRecorder) PublicScope

PublicScope indicates an expected call of PublicScope

func (*MockCandidatePropertyGetterMockRecorder) Region

Region indicates an expected call of Region

func (*MockCandidatePropertyGetterMockRecorder) ResourceType

ResourceType indicates an expected call of ResourceType

func (*MockCandidatePropertyGetterMockRecorder) RunningCPUCount

func (mr *MockCandidatePropertyGetterMockRecorder) RunningCPUCount() *gomock.Call

RunningCPUCount indicates an expected call of RunningCPUCount

func (*MockCandidatePropertyGetterMockRecorder) RunningMemorySize

func (mr *MockCandidatePropertyGetterMockRecorder) RunningMemorySize() *gomock.Call

RunningMemorySize indicates an expected call of RunningMemorySize

func (*MockCandidatePropertyGetterMockRecorder) SharedDomains

SharedDomains indicates an expected call of SharedDomains

func (*MockCandidatePropertyGetterMockRecorder) Sku

func (mr *MockCandidatePropertyGetterMockRecorder) Sku(arg0 interface{}) *gomock.Call

Sku indicates an expected call of Sku

func (*MockCandidatePropertyGetterMockRecorder) Status

Status indicates an expected call of Status

func (*MockCandidatePropertyGetterMockRecorder) StorageInfo

StorageInfo indicates an expected call of StorageInfo

func (*MockCandidatePropertyGetterMockRecorder) Storages

Storages indicates an expected call of Storages

func (*MockCandidatePropertyGetterMockRecorder) TotalCPUCount

func (mr *MockCandidatePropertyGetterMockRecorder) TotalCPUCount(arg0 interface{}) *gomock.Call

TotalCPUCount indicates an expected call of TotalCPUCount

func (*MockCandidatePropertyGetterMockRecorder) TotalMemorySize

func (mr *MockCandidatePropertyGetterMockRecorder) TotalMemorySize(arg0 interface{}) *gomock.Call

TotalMemorySize indicates an expected call of TotalMemorySize

func (*MockCandidatePropertyGetterMockRecorder) UnusedGpuDevices

func (mr *MockCandidatePropertyGetterMockRecorder) UnusedGpuDevices() *gomock.Call

UnusedGpuDevices indicates an expected call of UnusedGpuDevices

func (*MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevices

func (mr *MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevices() *gomock.Call

UnusedIsolatedDevices indicates an expected call of UnusedIsolatedDevices

func (*MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByModel

func (mr *MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByModel(arg0 interface{}) *gomock.Call

UnusedIsolatedDevicesByModel indicates an expected call of UnusedIsolatedDevicesByModel

func (*MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByType

func (mr *MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByType(arg0 interface{}) *gomock.Call

UnusedIsolatedDevicesByType indicates an expected call of UnusedIsolatedDevicesByType

func (*MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByVendorModel

func (mr *MockCandidatePropertyGetterMockRecorder) UnusedIsolatedDevicesByVendorModel(arg0 interface{}) *gomock.Call

UnusedIsolatedDevicesByVendorModel indicates an expected call of UnusedIsolatedDevicesByVendorModel

func (*MockCandidatePropertyGetterMockRecorder) Zone

Zone indicates an expected call of Zone

type MockCandidater

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

MockCandidater is a mock of Candidater interface

func NewMockCandidater

func NewMockCandidater(ctrl *gomock.Controller) *MockCandidater

NewMockCandidater creates a new mock instance

func (*MockCandidater) EXPECT

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

func (*MockCandidater) GetGuestCount

func (m *MockCandidater) GetGuestCount() int64

GetGuestCount mocks base method

func (*MockCandidater) GetResourceType

func (m *MockCandidater) GetResourceType() string

GetResourceType mocks base method

func (*MockCandidater) GetSchedDesc

func (m *MockCandidater) GetSchedDesc() *jsonutils.JSONDict

GetSchedDesc mocks base method

func (*MockCandidater) Getter

Getter mocks base method

func (*MockCandidater) IndexKey

func (m *MockCandidater) IndexKey() string

IndexKey mocks base method

func (*MockCandidater) Type

func (m *MockCandidater) Type() int

Type mocks base method

type MockCandidaterMockRecorder

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

MockCandidaterMockRecorder is the mock recorder for MockCandidater

func (*MockCandidaterMockRecorder) GetGuestCount

func (mr *MockCandidaterMockRecorder) GetGuestCount() *gomock.Call

GetGuestCount indicates an expected call of GetGuestCount

func (*MockCandidaterMockRecorder) GetResourceType

func (mr *MockCandidaterMockRecorder) GetResourceType() *gomock.Call

GetResourceType indicates an expected call of GetResourceType

func (*MockCandidaterMockRecorder) GetSchedDesc

func (mr *MockCandidaterMockRecorder) GetSchedDesc() *gomock.Call

GetSchedDesc indicates an expected call of GetSchedDesc

func (*MockCandidaterMockRecorder) Getter

func (mr *MockCandidaterMockRecorder) Getter() *gomock.Call

Getter indicates an expected call of Getter

func (*MockCandidaterMockRecorder) IndexKey

func (mr *MockCandidaterMockRecorder) IndexKey() *gomock.Call

IndexKey indicates an expected call of IndexKey

func (*MockCandidaterMockRecorder) Type

Type indicates an expected call of Type

type MockINetworkNicCountGetter

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

MockINetworkNicCountGetter is a mock of INetworkNicCountGetter interface

func NewMockINetworkNicCountGetter

func NewMockINetworkNicCountGetter(ctrl *gomock.Controller) *MockINetworkNicCountGetter

NewMockINetworkNicCountGetter creates a new mock instance

func (*MockINetworkNicCountGetter) EXPECT

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

func (*MockINetworkNicCountGetter) GetTotalNicCount

func (m *MockINetworkNicCountGetter) GetTotalNicCount(arg0 []string) (map[string]int, error)

GetTotalNicCount mocks base method

type MockINetworkNicCountGetterMockRecorder

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

MockINetworkNicCountGetterMockRecorder is the mock recorder for MockINetworkNicCountGetter

func (*MockINetworkNicCountGetterMockRecorder) GetTotalNicCount

func (mr *MockINetworkNicCountGetterMockRecorder) GetTotalNicCount(arg0 interface{}) *gomock.Call

GetTotalNicCount indicates an expected call of GetTotalNicCount

type MockScheduler

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

MockScheduler is a mock of Scheduler interface

func NewMockScheduler

func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler

NewMockScheduler creates a new mock instance

func (*MockScheduler) BeforePredicate

func (m *MockScheduler) BeforePredicate() error

BeforePredicate mocks base method

func (*MockScheduler) EXPECT

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

func (*MockScheduler) Predicates

func (m *MockScheduler) Predicates() (map[string]core.FitPredicate, error)

Predicates mocks base method

func (*MockScheduler) PriorityConfigs

func (m *MockScheduler) PriorityConfigs() ([]core.PriorityConfig, error)

PriorityConfigs mocks base method

type MockSchedulerMockRecorder

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

MockSchedulerMockRecorder is the mock recorder for MockScheduler

func (*MockSchedulerMockRecorder) BeforePredicate

func (mr *MockSchedulerMockRecorder) BeforePredicate() *gomock.Call

BeforePredicate indicates an expected call of BeforePredicate

func (*MockSchedulerMockRecorder) Predicates

func (mr *MockSchedulerMockRecorder) Predicates() *gomock.Call

Predicates indicates an expected call of Predicates

func (*MockSchedulerMockRecorder) PriorityConfigs

func (mr *MockSchedulerMockRecorder) PriorityConfigs() *gomock.Call

PriorityConfigs indicates an expected call of PriorityConfigs

Jump to

Keyboard shortcuts

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