Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct { ID string `json:"id" yaml:"id"` AppID string `json:"appId" yaml:"appId"` AppSlug string `json:"appSlug" yaml:"appSlug"` VersionLabel string `json:"versionLabel" yaml:"versionLabel"` UpdateCursor string `json:"updateCursor" yaml:"updateCursor"` ChannelID string `json:"channelId" yaml:"channelId"` CurrentECVersion string `json:"currentECVersion" yaml:"currentECVersion"` NewECVersion string `json:"newECVersion" yaml:"newECVersion"` IsAirgap bool `json:"isAirgap" yaml:"isAirgap"` BaseSequence int64 `json:"baseSequence" yaml:"baseSequence"` NextSequence int64 `json:"nextSequence" yaml:"nextSequence"` Source string `json:"source" yaml:"source"` Steps []*PlanStep `json:"steps" yaml:"steps"` }
func (*Plan) CurrentStep ¶
func (*Plan) GetStatus ¶
func (p *Plan) GetStatus() PlanStepStatus
type PlanStep ¶
type PlanStep struct { ID string `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Type PlanStepType `json:"type" yaml:"type"` Status PlanStepStatus `json:"status" yaml:"status"` StatusDescription string `json:"statusDescription" yaml:"statusDescription"` Owner PlanStepOwner `json:"owner" yaml:"owner"` OwnerHost string `json:"ownerHost" yaml:"ownerHost"` Input interface{} `json:"input" yaml:"input"` Output interface{} `json:"output" yaml:"output"` }
type PlanStepInputAppUpgradeService ¶
type PlanStepInputAppUpgradeService struct {
Params upgradeservicetypes.UpgradeServiceParams `json:"params" yaml:"params"`
}
type PlanStepInputECExtension ¶
type PlanStepInputECExtension struct { Repos []k0sv1beta1.Repository `json:"repos" yaml:"repos"` Chart ecv1beta1.Chart `json:"chart" yaml:"chart"` }
type PlanStepInputECUpgrade ¶
type PlanStepInputECUpgrade struct { CurrentECInstallation ecv1beta1.Installation `json:"currentECInstallation" yaml:"currentECInstallation"` CurrentKOTSInstallation kotsv1beta1.Installation `json:"currentKOTSInstallation" yaml:"currentKOTSInstallation"` NewECConfigSpec ecv1beta1.ConfigSpec `json:"newECConfigSpec" yaml:"newECConfigSpec"` IsDisasterRecoverySupported bool `json:"isDisasterRecoverySupported" yaml:"isDisasterRecoverySupported"` }
type PlanStepOwner ¶
type PlanStepOwner string
const ( StepOwnerKOTS PlanStepOwner = "kots" StepOwnerECManager PlanStepOwner = "manager" )
type PlanStepStatus ¶
type PlanStepStatus string
const ( StepStatusPending PlanStepStatus = "pending" StepStatusStarting PlanStepStatus = "starting" StepStatusRunning PlanStepStatus = "running" StepStatusComplete PlanStepStatus = "complete" StepStatusFailed PlanStepStatus = "failed" )
type PlanStepType ¶
type PlanStepType string
const ( StepTypeAppUpgradeService PlanStepType = "app-upgrade-service" StepTypeAppUpgrade PlanStepType = "app-upgrade" StepTypeECUpgrade PlanStepType = "ec-upgrade" StepTypeECExtensionAdd PlanStepType = "ec-extension-add" StepTypeECExtensionUpgrade PlanStepType = "ec-extension-upgrade" StepTypeECExtensionRemove PlanStepType = "ec-extension-remove" )
Click to show internal directories.
Click to hide internal directories.