edge

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJoinOtherFlags added in v1.11.0

func AddJoinOtherFlags(cmd *cobra.Command, joinOptions *common.JoinOptions)

func AddUpgradeFlags added in v1.16.0

func AddUpgradeFlags(cmd *cobra.Command, upgradeOptions *UpgradeOptions)

AddUpgradeFlags adds some flags to the upgrade command, and use UpgradeOptions struct to map these flags.

func NewEdgeJoin

func NewEdgeJoin() *cobra.Command

func NewEdgeRollback added in v1.16.0

func NewEdgeRollback() *cobra.Command

NewEdgeUpgrade returns KubeEdge edge upgrade command.

func NewEdgeUpgrade added in v1.12.0

func NewEdgeUpgrade() *cobra.Command

NewEdgeUpgrade returns KubeEdge edge upgrade command.

func NewOtherEdgeReset added in v1.17.0

func NewOtherEdgeReset() *cobra.Command

func TearDownEdgeCore added in v1.17.0

func TearDownEdgeCore() error

TearDownEdgeCore will bring down edge component,

Types

type RollbackOptions added in v1.16.0

type RollbackOptions struct {
	HistoryVersion string
	TaskType       string
	TaskName       string
	Config         string
}

type Upgrade added in v1.12.0

type Upgrade struct {
	UpgradeID      string
	HistoryID      string
	FromVersion    string
	ToVersion      string
	Image          string
	DisableBackup  bool
	ConfigFilePath string
	TaskType       string
	EdgeCoreConfig *v1alpha2.EdgeCoreConfig

	Status string
	Reason string
}

func (*Upgrade) PreProcess added in v1.12.0

func (up *Upgrade) PreProcess() error

func (*Upgrade) Process added in v1.12.0

func (up *Upgrade) Process() error

func (*Upgrade) Rollback added in v1.12.0

func (up *Upgrade) Rollback() error

func (*Upgrade) UpdateFailureReason added in v1.12.0

func (up *Upgrade) UpdateFailureReason(reason string)

func (*Upgrade) UpdateStatus added in v1.12.0

func (up *Upgrade) UpdateStatus(status string)

type UpgradeOptions added in v1.12.0

type UpgradeOptions struct {
	UpgradeID     string
	HistoryID     string
	FromVersion   string
	ToVersion     string
	Config        string
	Image         string
	DisableBackup bool
	TaskType      string
}

func NewUpgradeOptions added in v1.16.0

func NewUpgradeOptions() *UpgradeOptions

NewUpgradeOptions returns a struct ready for being used for creating cmd join flags.

func (*UpgradeOptions) Upgrade added in v1.16.1

func (up *UpgradeOptions) Upgrade() error

Upgrade handles upgrade command logic

Jump to

Keyboard shortcuts

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