Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateUpgrading = "Upgrading" StateCreatingUpgradeImage = "CreatingUpgradeImage" StatePreparingRepo = "PreparingRepo" StateRepoPrepared = "RepoPrepared" StatePreparingNodes = "PreparingNodes" StateUpgradingSystemServices = "UpgradingSystemServices" StateUpgradingNodes = "UpgradingNodes" StateSucceeded = "Succeeded" StateFailed = "Failed" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckUpgradeRequest ¶
type CheckUpgradeRequest struct {
AppVersion string `json:"appVersion"`
}
type CheckUpgradeResponse ¶
type CheckUpgradeResponse struct {
Versions []Version `json:"versions"`
}
type HarvesterRelease ¶ added in v1.0.0
type HarvesterRelease struct { Harvester string `yaml:"harvester,omitempty"` HarvesterChart string `yaml:"harvesterChart,omitempty"` OS string `yaml:"os,omitempty"` Kubernetes string `yaml:"kubernetes,omitempty"` Rancher string `yaml:"rancher,omitempty"` MonitoringChart string `yaml:"monitoringChart,omitempty"` }
type NodeUpdateFunc ¶ added in v1.0.0
type UpgradeRepo ¶ added in v1.0.0
type UpgradeRepo struct {
// contains filtered or unexported fields
}
func NewUpgradeRepo ¶ added in v1.0.0
func NewUpgradeRepo(ctx context.Context, upgrade *harvesterv1.Upgrade, upgradeHandler *upgradeHandler) *UpgradeRepo
func (*UpgradeRepo) Bootstrap ¶ added in v1.0.0
func (r *UpgradeRepo) Bootstrap() error
func (*UpgradeRepo) CreateImageFromISO ¶ added in v1.0.0
func (r *UpgradeRepo) CreateImageFromISO(isoURL string, checksum string) (*harvesterv1.VirtualMachineImage, error)
func (*UpgradeRepo) GetImage ¶ added in v1.0.0
func (r *UpgradeRepo) GetImage(imageName string) (*harvesterv1.VirtualMachineImage, error)
type UpgradeRepoInfo ¶ added in v1.0.0
type UpgradeRepoInfo struct {
Release HarvesterRelease
}
func (*UpgradeRepoInfo) Load ¶ added in v1.0.0
func (info *UpgradeRepoInfo) Load(data string) error
func (*UpgradeRepoInfo) Marshall ¶ added in v1.0.0
func (info *UpgradeRepoInfo) Marshall() (string, error)
Click to show internal directories.
Click to hide internal directories.