Documentation ¶
Overview ¶
Package host is a generated GoMock package.
Package host is a generated GoMock package.
Index ¶
- Constants
- Variables
- func CreateUploadLogsCmd(host *models.Host, baseURL string, agentImage string, ...) (string, error)
- func GetDeviceFullName(name string) string
- func If(id validationID) stateswitch.Condition
- func NewConnectivityCheckCmd(log logrus.FieldLogger, db *gorm.DB, ...) *connectivityCheckCmd
- func NewDhcpAllocateCmd(log logrus.FieldLogger, dhcpAllocateImage string, db *gorm.DB) *dhcpAllocateCmd
- func NewFreeAddressesCmd(log logrus.FieldLogger, freeAddressesImage string) *freeAddressesCmd
- func NewHostStateMachine(th *transitionHandler) stateswitch.StateMachine
- func NewInstallCmd(log logrus.FieldLogger, db *gorm.DB, hwValidator hardware.Validator, ...) *installCmd
- func NewInventoryCmd(log logrus.FieldLogger, inventoryImage string) *inventoryCmd
- func NewResetInstallationCmd(log logrus.FieldLogger) *resetInstallationCmd
- func NewStopInstallationCmd(log logrus.FieldLogger) *stopInstallationCmd
- func UpdateHost(log logrus.FieldLogger, db *gorm.DB, clusterId strfmt.UUID, hostId strfmt.UUID, ...) (*models.Host, error)
- type API
- type CommandGetter
- type Config
- type InstructionApi
- type InstructionConfig
- type InstructionManager
- type Manager
- func (m *Manager) AutoAssignRole(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) CancelInstallation(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
- func (m *Manager) DisableHost(ctx context.Context, h *models.Host) error
- func (m *Manager) EnableHost(ctx context.Context, h *models.Host) error
- func (m *Manager) GetHostRequirements(role models.HostRole) models.HostRequirementsRole
- func (m *Manager) GetNextSteps(ctx context.Context, host *models.Host) (models.Steps, error)
- func (m *Manager) GetStagesByRole(role models.HostRole, isbootstrap bool) []models.HostStage
- func (m *Manager) HandleInstallationFailure(ctx context.Context, h *models.Host) error
- func (m *Manager) HostMonitoring()
- func (m *Manager) Install(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) IsInstallable(h *models.Host) bool
- func (m *Manager) IsRequireUserActionReset(h *models.Host) bool
- func (m *Manager) IsValidMasterCandidate(h *models.Host, db *gorm.DB, log logrus.FieldLogger) (bool, error)
- func (m *Manager) PrepareForInstallation(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) RefreshStatus(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) RegisterHost(ctx context.Context, h *models.Host) error
- func (m *Manager) ResetHost(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
- func (m *Manager) ResetPendingUserAction(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) SetBootstrap(ctx context.Context, h *models.Host, isbootstrap bool, db *gorm.DB) error
- func (m *Manager) SetUploadLogsAt(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *Manager) UpdateConnectivityReport(ctx context.Context, h *models.Host, connectivityReport string) error
- func (m *Manager) UpdateHostname(ctx context.Context, h *models.Host, hostname string, db *gorm.DB) error
- func (m *Manager) UpdateInstallProgress(ctx context.Context, h *models.Host, progress *models.HostProgress) error
- func (m *Manager) UpdateInventory(ctx context.Context, h *models.Host, inventory string) error
- func (m *Manager) UpdateRole(ctx context.Context, h *models.Host, role models.HostRole, db *gorm.DB) error
- type MockAPI
- func (m *MockAPI) AutoAssignRole(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) CancelInstallation(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
- func (m *MockAPI) DisableHost(ctx context.Context, h *models.Host) error
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) EnableHost(ctx context.Context, h *models.Host) error
- func (m *MockAPI) GetHostRequirements(role models.HostRole) models.HostRequirementsRole
- func (m *MockAPI) GetNextSteps(ctx context.Context, host *models.Host) (models.Steps, error)
- func (m *MockAPI) GetStagesByRole(role models.HostRole, isbootstrap bool) []models.HostStage
- func (m *MockAPI) HandleInstallationFailure(ctx context.Context, h *models.Host) error
- func (m *MockAPI) HostMonitoring()
- func (m *MockAPI) Install(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) IsInstallable(h *models.Host) bool
- func (m *MockAPI) IsRequireUserActionReset(h *models.Host) bool
- func (m *MockAPI) IsValidMasterCandidate(h *models.Host, db *gorm.DB, log logrus.FieldLogger) (bool, error)
- func (m *MockAPI) PrepareForInstallation(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) RefreshStatus(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) RegisterHost(ctx context.Context, h *models.Host) error
- func (m *MockAPI) ResetHost(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
- func (m *MockAPI) ResetPendingUserAction(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) SetBootstrap(ctx context.Context, h *models.Host, isbootstrap bool, db *gorm.DB) error
- func (m *MockAPI) SetUploadLogsAt(ctx context.Context, h *models.Host, db *gorm.DB) error
- func (m *MockAPI) UpdateConnectivityReport(ctx context.Context, h *models.Host, connectivityReport string) error
- func (m *MockAPI) UpdateHostname(ctx context.Context, h *models.Host, hostname string, db *gorm.DB) error
- func (m *MockAPI) UpdateInstallProgress(ctx context.Context, h *models.Host, progress *models.HostProgress) error
- func (m *MockAPI) UpdateInventory(ctx context.Context, h *models.Host, inventory string) error
- func (m *MockAPI) UpdateRole(ctx context.Context, h *models.Host, role models.HostRole, db *gorm.DB) error
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) AutoAssignRole(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) CancelInstallation(ctx, h, reason, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) DisableHost(ctx, h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) EnableHost(ctx, h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetHostRequirements(role interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetNextSteps(ctx, host interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetStagesByRole(role, isbootstrap interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) HandleInstallationFailure(ctx, h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) HostMonitoring() *gomock.Call
- func (mr *MockAPIMockRecorder) Install(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) IsInstallable(h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) IsRequireUserActionReset(h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) IsValidMasterCandidate(h, db, log interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) PrepareForInstallation(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) RefreshStatus(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) RegisterHost(ctx, h interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ResetHost(ctx, h, reason, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ResetPendingUserAction(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) SetBootstrap(ctx, h, isbootstrap, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) SetUploadLogsAt(ctx, h, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateConnectivityReport(ctx, h, connectivityReport interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateHostname(ctx, h, hostname, db interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateInstallProgress(ctx, h, progress interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateInventory(ctx, h, inventory interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateRole(ctx, h, role, db interface{}) *gomock.Call
- type MockInstructionApi
- type MockInstructionApiMockRecorder
- type StepsStruct
- type TransitionArgsCancelInstallation
- type TransitionArgsDisableHost
- type TransitionArgsEnableHost
- type TransitionArgsHostInstallationFailed
- type TransitionArgsInstallHost
- type TransitionArgsPrepareForInstallation
- type TransitionArgsRefreshHost
- type TransitionArgsRegisterHost
- type TransitionArgsResetHost
- type TransitionResettingPendingUserAction
- type UpdateReply
Constants ¶
const ( HostStatusDiscovering = "discovering" HostStatusKnown = "known" HostStatusDisconnected = "disconnected" HostStatusInsufficient = "insufficient" HostStatusDisabled = "disabled" HostStatusInstalling = "installing" HostStatusInstallingInProgress = "installing-in-progress" HostStatusInstallingPendingUserAction = "installing-pending-user-action" HostStatusInstalled = "installed" HostStatusError = "error" HostStatusResetting = "resetting" HostStatusPendingForInput = "pending-for-input" )
const ( TransitionTypeRegisterHost = "RegisterHost" TransitionTypeHostInstallationFailed = "HostInstallationFailed" TransitionTypeCancelInstallation = "CancelInstallation" TransitionTypeResetHost = "ResetHost" TransitionTypeInstallHost = "InstallHost" TransitionTypeDisableHost = "DisableHost" TransitionTypeEnableHost = "EnableHost" TransitionTypeResettingPendingUserAction = "ResettingPendingUserAction" TransitionTypePrepareForInstallation = "Prepare for installation" TransitionTypeRefresh = "RefreshHost" )
const ( IsConnected = validationID(models.HostValidationIDConnected) HasInventory = validationID(models.HostValidationIDHasInventory) IsMachineCidrDefined = validationID(models.HostValidationIDMachineCidrDefined) BelongsToMachineCidr = validationID(models.HostValidationIDBelongsToMachineCidr) HasMinCPUCores = validationID(models.HostValidationIDHasMinCPUCores) HasMinValidDisks = validationID(models.HostValidationIDHasMinValidDisks) HasMinMemory = validationID(models.HostValidationIDHasMinMemory) HasCPUCoresForRole = validationID(models.HostValidationIDHasCPUCoresForRole) HasMemoryForRole = validationID(models.HostValidationIDHasMemoryForRole) IsHostnameUnique = validationID(models.HostValidationIDHostnameUnique) IsHostnameValid = validationID(models.HostValidationIDHostnameValid) )
const ( ValidationSuccess validationStatus = "success" ValidationFailure validationStatus = "failure" ValidationPending validationStatus = "pending" ValidationError validationStatus = "error" )
Variables ¶
var BootstrapStages = [...]models.HostStage{ models.HostStageStartingInstallation, models.HostStageInstalling, models.HostStageWritingImageToDisk, models.HostStageWaitingForControlPlane, models.HostStageRebooting, models.HostStageConfiguring, models.HostStageDone, }
Functions ¶
func CreateUploadLogsCmd ¶
func GetDeviceFullName ¶
func If ¶
func If(id validationID) stateswitch.Condition
func NewConnectivityCheckCmd ¶
func NewConnectivityCheckCmd(log logrus.FieldLogger, db *gorm.DB, connectivityValidator connectivity.Validator, connectivityCheckImage string) *connectivityCheckCmd
func NewDhcpAllocateCmd ¶
func NewDhcpAllocateCmd(log logrus.FieldLogger, dhcpAllocateImage string, db *gorm.DB) *dhcpAllocateCmd
func NewFreeAddressesCmd ¶
func NewFreeAddressesCmd(log logrus.FieldLogger, freeAddressesImage string) *freeAddressesCmd
func NewHostStateMachine ¶
func NewHostStateMachine(th *transitionHandler) stateswitch.StateMachine
func NewInstallCmd ¶
func NewInstallCmd(log logrus.FieldLogger, db *gorm.DB, hwValidator hardware.Validator, instructionConfig InstructionConfig) *installCmd
func NewInventoryCmd ¶
func NewInventoryCmd(log logrus.FieldLogger, inventoryImage string) *inventoryCmd
func NewResetInstallationCmd ¶
func NewResetInstallationCmd(log logrus.FieldLogger) *resetInstallationCmd
func NewStopInstallationCmd ¶
func NewStopInstallationCmd(log logrus.FieldLogger) *stopInstallationCmd
Types ¶
type API ¶
type API interface { // Register a new host RegisterHost(ctx context.Context, h *models.Host) error HandleInstallationFailure(ctx context.Context, h *models.Host) error InstructionApi UpdateInstallProgress(ctx context.Context, h *models.Host, progress *models.HostProgress) error RefreshStatus(ctx context.Context, h *models.Host, db *gorm.DB) error SetBootstrap(ctx context.Context, h *models.Host, isbootstrap bool, db *gorm.DB) error UpdateConnectivityReport(ctx context.Context, h *models.Host, connectivityReport string) error HostMonitoring() UpdateRole(ctx context.Context, h *models.Host, role models.HostRole, db *gorm.DB) error UpdateHostname(ctx context.Context, h *models.Host, hostname string, db *gorm.DB) error CancelInstallation(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse IsRequireUserActionReset(h *models.Host) bool ResetHost(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse ResetPendingUserAction(ctx context.Context, h *models.Host, db *gorm.DB) error // Disable host from getting any requests DisableHost(ctx context.Context, h *models.Host) error // Enable host to get requests (disabled by default) EnableHost(ctx context.Context, h *models.Host) error // Install host - db is optional, for transactions Install(ctx context.Context, h *models.Host, db *gorm.DB) error // Set a new inventory information UpdateInventory(ctx context.Context, h *models.Host, inventory string) error GetStagesByRole(role models.HostRole, isbootstrap bool) []models.HostStage IsInstallable(h *models.Host) bool PrepareForInstallation(ctx context.Context, h *models.Host, db *gorm.DB) error // auto assign host role AutoAssignRole(ctx context.Context, h *models.Host, db *gorm.DB) error IsValidMasterCandidate(h *models.Host, db *gorm.DB, log logrus.FieldLogger) (bool, error) SetUploadLogsAt(ctx context.Context, h *models.Host, db *gorm.DB) error GetHostRequirements(role models.HostRole) models.HostRequirementsRole }
type CommandGetter ¶
type InstructionApi ¶
type InstructionConfig ¶
type InstructionConfig struct { ServiceBaseURL string `envconfig:"SERVICE_BASE_URL"` InstallerImage string `envconfig:"INSTALLER_IMAGE" default:"quay.io/ocpmetal/assisted-installer:latest"` ControllerImage string `envconfig:"CONTROLLER_IMAGE" default:"quay.io/ocpmetal/assisted-installer-controller:latest"` ConnectivityCheckImage string `envconfig:"CONNECTIVITY_CHECK_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` InventoryImage string `envconfig:"INVENTORY_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` FreeAddressesImage string `envconfig:"FREE_ADDRESSES_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` DhcpLeaseAllocatorImage string `envconfig:"DHCP_LEASE_ALLOCATOR_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` SkipCertVerification bool `envconfig:"SKIP_CERT_VERIFICATION" default:"false"` }
type InstructionManager ¶
type InstructionManager struct {
// contains filtered or unexported fields
}
func NewInstructionManager ¶
func NewInstructionManager(log logrus.FieldLogger, db *gorm.DB, hwValidator hardware.Validator, instructionConfig InstructionConfig, connectivityValidator connectivity.Validator) *InstructionManager
func (*InstructionManager) GetNextSteps ¶
type Manager ¶
type Manager struct { Config Config // contains filtered or unexported fields }
func NewManager ¶
func NewManager(log logrus.FieldLogger, db *gorm.DB, eventsHandler events.Handler, hwValidator hardware.Validator, instructionApi InstructionApi, hwValidatorCfg *hardware.ValidatorCfg, metricApi metrics.API, config *Config) *Manager
func (*Manager) AutoAssignRole ¶
func (*Manager) CancelInstallation ¶
func (*Manager) DisableHost ¶
func (*Manager) EnableHost ¶
func (*Manager) GetHostRequirements ¶
func (m *Manager) GetHostRequirements(role models.HostRole) models.HostRequirementsRole
func (*Manager) GetNextSteps ¶
func (*Manager) GetStagesByRole ¶
func (*Manager) HandleInstallationFailure ¶
func (*Manager) HostMonitoring ¶
func (m *Manager) HostMonitoring()
func (*Manager) IsRequireUserActionReset ¶
func (*Manager) IsValidMasterCandidate ¶
func (*Manager) PrepareForInstallation ¶
func (*Manager) RefreshStatus ¶
func (*Manager) RegisterHost ¶
func (*Manager) ResetPendingUserAction ¶
func (*Manager) SetBootstrap ¶
func (*Manager) SetUploadLogsAt ¶
func (*Manager) UpdateConnectivityReport ¶
func (*Manager) UpdateHostname ¶
func (*Manager) UpdateInstallProgress ¶
func (*Manager) UpdateInventory ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance
func (*MockAPI) AutoAssignRole ¶
AutoAssignRole mocks base method
func (*MockAPI) CancelInstallation ¶
func (m *MockAPI) CancelInstallation(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
CancelInstallation mocks base method
func (*MockAPI) DisableHost ¶
DisableHost mocks base method
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAPI) EnableHost ¶
EnableHost mocks base method
func (*MockAPI) GetHostRequirements ¶
func (m *MockAPI) GetHostRequirements(role models.HostRole) models.HostRequirementsRole
GetHostRequirements mocks base method
func (*MockAPI) GetNextSteps ¶
GetNextSteps mocks base method
func (*MockAPI) GetStagesByRole ¶
GetStagesByRole mocks base method
func (*MockAPI) HandleInstallationFailure ¶
HandleInstallationFailure mocks base method
func (*MockAPI) HostMonitoring ¶
func (m *MockAPI) HostMonitoring()
HostMonitoring mocks base method
func (*MockAPI) IsInstallable ¶
IsInstallable mocks base method
func (*MockAPI) IsRequireUserActionReset ¶
IsRequireUserActionReset mocks base method
func (*MockAPI) IsValidMasterCandidate ¶
func (m *MockAPI) IsValidMasterCandidate(h *models.Host, db *gorm.DB, log logrus.FieldLogger) (bool, error)
IsValidMasterCandidate mocks base method
func (*MockAPI) PrepareForInstallation ¶
PrepareForInstallation mocks base method
func (*MockAPI) RefreshStatus ¶
RefreshStatus mocks base method
func (*MockAPI) RegisterHost ¶
RegisterHost mocks base method
func (*MockAPI) ResetHost ¶
func (m *MockAPI) ResetHost(ctx context.Context, h *models.Host, reason string, db *gorm.DB) *common.ApiErrorResponse
ResetHost mocks base method
func (*MockAPI) ResetPendingUserAction ¶
ResetPendingUserAction mocks base method
func (*MockAPI) SetBootstrap ¶
func (m *MockAPI) SetBootstrap(ctx context.Context, h *models.Host, isbootstrap bool, db *gorm.DB) error
SetBootstrap mocks base method
func (*MockAPI) SetUploadLogsAt ¶
SetUploadLogsAt mocks base method
func (*MockAPI) UpdateConnectivityReport ¶
func (m *MockAPI) UpdateConnectivityReport(ctx context.Context, h *models.Host, connectivityReport string) error
UpdateConnectivityReport mocks base method
func (*MockAPI) UpdateHostname ¶
func (m *MockAPI) UpdateHostname(ctx context.Context, h *models.Host, hostname string, db *gorm.DB) error
UpdateHostname mocks base method
func (*MockAPI) UpdateInstallProgress ¶
func (m *MockAPI) UpdateInstallProgress(ctx context.Context, h *models.Host, progress *models.HostProgress) error
UpdateInstallProgress mocks base method
func (*MockAPI) UpdateInventory ¶
UpdateInventory mocks base method
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI
func (*MockAPIMockRecorder) AutoAssignRole ¶
func (mr *MockAPIMockRecorder) AutoAssignRole(ctx, h, db interface{}) *gomock.Call
AutoAssignRole indicates an expected call of AutoAssignRole
func (*MockAPIMockRecorder) CancelInstallation ¶
func (mr *MockAPIMockRecorder) CancelInstallation(ctx, h, reason, db interface{}) *gomock.Call
CancelInstallation indicates an expected call of CancelInstallation
func (*MockAPIMockRecorder) DisableHost ¶
func (mr *MockAPIMockRecorder) DisableHost(ctx, h interface{}) *gomock.Call
DisableHost indicates an expected call of DisableHost
func (*MockAPIMockRecorder) EnableHost ¶
func (mr *MockAPIMockRecorder) EnableHost(ctx, h interface{}) *gomock.Call
EnableHost indicates an expected call of EnableHost
func (*MockAPIMockRecorder) GetHostRequirements ¶
func (mr *MockAPIMockRecorder) GetHostRequirements(role interface{}) *gomock.Call
GetHostRequirements indicates an expected call of GetHostRequirements
func (*MockAPIMockRecorder) GetNextSteps ¶
func (mr *MockAPIMockRecorder) GetNextSteps(ctx, host interface{}) *gomock.Call
GetNextSteps indicates an expected call of GetNextSteps
func (*MockAPIMockRecorder) GetStagesByRole ¶
func (mr *MockAPIMockRecorder) GetStagesByRole(role, isbootstrap interface{}) *gomock.Call
GetStagesByRole indicates an expected call of GetStagesByRole
func (*MockAPIMockRecorder) HandleInstallationFailure ¶
func (mr *MockAPIMockRecorder) HandleInstallationFailure(ctx, h interface{}) *gomock.Call
HandleInstallationFailure indicates an expected call of HandleInstallationFailure
func (*MockAPIMockRecorder) HostMonitoring ¶
func (mr *MockAPIMockRecorder) HostMonitoring() *gomock.Call
HostMonitoring indicates an expected call of HostMonitoring
func (*MockAPIMockRecorder) Install ¶
func (mr *MockAPIMockRecorder) Install(ctx, h, db interface{}) *gomock.Call
Install indicates an expected call of Install
func (*MockAPIMockRecorder) IsInstallable ¶
func (mr *MockAPIMockRecorder) IsInstallable(h interface{}) *gomock.Call
IsInstallable indicates an expected call of IsInstallable
func (*MockAPIMockRecorder) IsRequireUserActionReset ¶
func (mr *MockAPIMockRecorder) IsRequireUserActionReset(h interface{}) *gomock.Call
IsRequireUserActionReset indicates an expected call of IsRequireUserActionReset
func (*MockAPIMockRecorder) IsValidMasterCandidate ¶
func (mr *MockAPIMockRecorder) IsValidMasterCandidate(h, db, log interface{}) *gomock.Call
IsValidMasterCandidate indicates an expected call of IsValidMasterCandidate
func (*MockAPIMockRecorder) PrepareForInstallation ¶
func (mr *MockAPIMockRecorder) PrepareForInstallation(ctx, h, db interface{}) *gomock.Call
PrepareForInstallation indicates an expected call of PrepareForInstallation
func (*MockAPIMockRecorder) RefreshStatus ¶
func (mr *MockAPIMockRecorder) RefreshStatus(ctx, h, db interface{}) *gomock.Call
RefreshStatus indicates an expected call of RefreshStatus
func (*MockAPIMockRecorder) RegisterHost ¶
func (mr *MockAPIMockRecorder) RegisterHost(ctx, h interface{}) *gomock.Call
RegisterHost indicates an expected call of RegisterHost
func (*MockAPIMockRecorder) ResetHost ¶
func (mr *MockAPIMockRecorder) ResetHost(ctx, h, reason, db interface{}) *gomock.Call
ResetHost indicates an expected call of ResetHost
func (*MockAPIMockRecorder) ResetPendingUserAction ¶
func (mr *MockAPIMockRecorder) ResetPendingUserAction(ctx, h, db interface{}) *gomock.Call
ResetPendingUserAction indicates an expected call of ResetPendingUserAction
func (*MockAPIMockRecorder) SetBootstrap ¶
func (mr *MockAPIMockRecorder) SetBootstrap(ctx, h, isbootstrap, db interface{}) *gomock.Call
SetBootstrap indicates an expected call of SetBootstrap
func (*MockAPIMockRecorder) SetUploadLogsAt ¶
func (mr *MockAPIMockRecorder) SetUploadLogsAt(ctx, h, db interface{}) *gomock.Call
SetUploadLogsAt indicates an expected call of SetUploadLogsAt
func (*MockAPIMockRecorder) UpdateConnectivityReport ¶
func (mr *MockAPIMockRecorder) UpdateConnectivityReport(ctx, h, connectivityReport interface{}) *gomock.Call
UpdateConnectivityReport indicates an expected call of UpdateConnectivityReport
func (*MockAPIMockRecorder) UpdateHostname ¶
func (mr *MockAPIMockRecorder) UpdateHostname(ctx, h, hostname, db interface{}) *gomock.Call
UpdateHostname indicates an expected call of UpdateHostname
func (*MockAPIMockRecorder) UpdateInstallProgress ¶
func (mr *MockAPIMockRecorder) UpdateInstallProgress(ctx, h, progress interface{}) *gomock.Call
UpdateInstallProgress indicates an expected call of UpdateInstallProgress
func (*MockAPIMockRecorder) UpdateInventory ¶
func (mr *MockAPIMockRecorder) UpdateInventory(ctx, h, inventory interface{}) *gomock.Call
UpdateInventory indicates an expected call of UpdateInventory
func (*MockAPIMockRecorder) UpdateRole ¶
func (mr *MockAPIMockRecorder) UpdateRole(ctx, h, role, db interface{}) *gomock.Call
UpdateRole indicates an expected call of UpdateRole
type MockInstructionApi ¶
type MockInstructionApi struct {
// contains filtered or unexported fields
}
MockInstructionApi is a mock of InstructionApi interface
func NewMockInstructionApi ¶
func NewMockInstructionApi(ctrl *gomock.Controller) *MockInstructionApi
NewMockInstructionApi creates a new mock instance
func (*MockInstructionApi) EXPECT ¶
func (m *MockInstructionApi) EXPECT() *MockInstructionApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInstructionApi) GetNextSteps ¶
func (m *MockInstructionApi) GetNextSteps(ctx context.Context, host *models.Host) (models.Steps, error)
GetNextSteps mocks base method
type MockInstructionApiMockRecorder ¶
type MockInstructionApiMockRecorder struct {
// contains filtered or unexported fields
}
MockInstructionApiMockRecorder is the mock recorder for MockInstructionApi
func (*MockInstructionApiMockRecorder) GetNextSteps ¶
func (mr *MockInstructionApiMockRecorder) GetNextSteps(ctx, host interface{}) *gomock.Call
GetNextSteps indicates an expected call of GetNextSteps
type StepsStruct ¶
type StepsStruct struct { Commands []CommandGetter NextStepInSec int64 }
type TransitionArgsCancelInstallation ¶
type TransitionArgsCancelInstallation struct {
// contains filtered or unexported fields
}
type TransitionArgsDisableHost ¶
type TransitionArgsDisableHost struct {
// contains filtered or unexported fields
}
type TransitionArgsEnableHost ¶
type TransitionArgsEnableHost struct {
// contains filtered or unexported fields
}
type TransitionArgsHostInstallationFailed ¶
type TransitionArgsHostInstallationFailed struct {
// contains filtered or unexported fields
}
type TransitionArgsInstallHost ¶
type TransitionArgsInstallHost struct {
// contains filtered or unexported fields
}
type TransitionArgsPrepareForInstallation ¶
type TransitionArgsPrepareForInstallation struct {
// contains filtered or unexported fields
}
type TransitionArgsRefreshHost ¶
type TransitionArgsRefreshHost struct {
// contains filtered or unexported fields
}
type TransitionArgsRegisterHost ¶
type TransitionArgsRegisterHost struct {
// contains filtered or unexported fields
}
type TransitionArgsResetHost ¶
type TransitionArgsResetHost struct {
// contains filtered or unexported fields
}
type TransitionResettingPendingUserAction ¶
type TransitionResettingPendingUserAction struct {
// contains filtered or unexported fields
}
type UpdateReply ¶
Source Files ¶
- cmdcommon.go
- common.go
- connectivitycheckcmd.go
- connectivitycheckconvertor.go
- dhcpallocatecmd.go
- freeaddressescmd.go
- host.go
- installcmd.go
- instructionmanager.go
- inventorycmd.go
- mock_host_api.go
- mock_instruction_api.go
- monitor.go
- refresh_status_preprocessor.go
- resetinstallationcmd.go
- statehost.go
- statemachine.go
- stopinstallation.go
- transition.go
- validation_id.go
- validator.go