Documentation ¶
Overview ¶
Package hardware is a generated GoMock package.
Index ¶
- type IsSufficientReply
- type MockValidator
- func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
- func (m *MockValidator) GetHostValidDisks(host *models.Host) ([]*models.Disk, error)
- func (m *MockValidator) GetHostValidInterfaces(host *models.Host) ([]*models.Interface, error)
- func (m *MockValidator) IsSufficient(host *models.Host, cluster *common.Cluster) (*IsSufficientReply, error)
- type MockValidatorMockRecorder
- type Validator
- type ValidatorCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsSufficientReply ¶
type MockValidator ¶
type MockValidator struct {
// contains filtered or unexported fields
}
MockValidator is a mock of Validator interface
func NewMockValidator ¶
func NewMockValidator(ctrl *gomock.Controller) *MockValidator
NewMockValidator creates a new mock instance
func (*MockValidator) EXPECT ¶
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockValidator) GetHostValidDisks ¶
GetHostValidDisks mocks base method
func (*MockValidator) GetHostValidInterfaces ¶
GetHostValidInterfaces mocks base method
func (*MockValidator) IsSufficient ¶
func (m *MockValidator) IsSufficient(host *models.Host, cluster *common.Cluster) (*IsSufficientReply, error)
IsSufficient mocks base method
type MockValidatorMockRecorder ¶
type MockValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorMockRecorder is the mock recorder for MockValidator
func (*MockValidatorMockRecorder) GetHostValidDisks ¶
func (mr *MockValidatorMockRecorder) GetHostValidDisks(host interface{}) *gomock.Call
GetHostValidDisks indicates an expected call of GetHostValidDisks
func (*MockValidatorMockRecorder) GetHostValidInterfaces ¶
func (mr *MockValidatorMockRecorder) GetHostValidInterfaces(host interface{}) *gomock.Call
GetHostValidInterfaces indicates an expected call of GetHostValidInterfaces
func (*MockValidatorMockRecorder) IsSufficient ¶
func (mr *MockValidatorMockRecorder) IsSufficient(host, cluster interface{}) *gomock.Call
IsSufficient indicates an expected call of IsSufficient
type Validator ¶
type Validator interface { IsSufficient(host *models.Host, cluster *common.Cluster) (*IsSufficientReply, error) GetHostValidDisks(host *models.Host) ([]*models.Disk, error) GetHostValidInterfaces(host *models.Host) ([]*models.Interface, error) }
func NewValidator ¶
func NewValidator(log logrus.FieldLogger, cfg ValidatorCfg) Validator
type ValidatorCfg ¶
type ValidatorCfg struct { MinCPUCores int64 `envconfig:"HW_VALIDATOR_MIN_CPU_CORES" default:"2"` MinCPUCoresWorker int64 `envconfig:"HW_VALIDATOR_MIN_CPU_CORES_WORKER" default:"2"` MinCPUCoresMaster int64 `envconfig:"HW_VALIDATOR_MIN_CPU_CORES_MASTER" default:"4"` MinRamGib int64 `envconfig:"HW_VALIDATOR_MIN_RAM_GIB" default:"8"` MinRamGibWorker int64 `envconfig:"HW_VALIDATOR_MIN_RAM_GIB_WORKER" default:"8"` MinRamGibMaster int64 `envconfig:"HW_VALIDATOR_MIN_RAM_GIB_MASTER" default:"16"` MinDiskSizeGib int64 `envconfig:"HW_VALIDATOR_MIN_DISK_SIZE_GIB" default:"120"` }
Click to show internal directories.
Click to hide internal directories.