types

package
v1.122.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 (p *Plan) CurrentStep() *PlanStep

func (*Plan) GetStatus

func (p *Plan) GetStatus() PlanStepStatus

func (*Plan) HasEnded

func (p *Plan) HasEnded() bool

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"
)

Jump to

Keyboard shortcuts

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