v041_042

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

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

func (p *UpgradeTask) FromVersion() string

FromVersion returns the version from which the components need to be updated

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

func (p *UpgradeTask) PostUpgrade() bool

PostUpgrade runs the tasks that need to be performed after upgrade and returns whether the tasks where success or not

func (*UpgradeTask) PreUpgrade

func (p *UpgradeTask) PreUpgrade() bool

PreUpgrade runs the preupgrade tasks and returns whether it succeeded or not

func (*UpgradeTask) ToVersion

func (p *UpgradeTask) ToVersion() string

ToVersion returns the version to which components will be updated. This should be the current version

func (*UpgradeTask) Upgrade

func (p *UpgradeTask) Upgrade() bool

Upgrade runs the main 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