v041_042

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpgradeTask

type UpgradeTask struct {
	// contains filtered or unexported fields
}

UpgradeTask is the struct which implements the Task interface which can be used to perform the upgrade

func NewUpgradeTask

func NewUpgradeTask(from, to string, c client.Client) *UpgradeTask

NewUpgradeTask creates a new upgrade task with given client and specified `from` and `to` version

func (*UpgradeTask) IsSuccess

func (p *UpgradeTask) IsSuccess() error

IsSuccess returns error if the upgrade failed, at any step. Else nil will be returned

func (*UpgradeTask) PreUpgrade

func (p *UpgradeTask) PreUpgrade() bool

PreUpgrade runs the pre-upgrade tasks and returns whether it succeeded or not

Jump to

Keyboard shortcuts

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