apinodeutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedManager = NewManager()

Functions

func CanUpgrade

func CanUpgrade(apiVersion string, osName string, arch string) (canUpgrade bool, reason string)

Types

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) AddUpgrader

func (this *Manager) AddUpgrader(upgrader *Upgrader)

func (*Manager) FindUpgrader

func (this *Manager) FindUpgrader(apiNodeId int64) *Upgrader

func (*Manager) RemoveUpgrader

func (this *Manager) RemoveUpgrader(upgrader *Upgrader)

type Progress

type Progress struct {
	Percent float64
}

type Upgrader

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

func NewUpgrader

func NewUpgrader(apiNodeId int64) *Upgrader

func (*Upgrader) Progress

func (this *Upgrader) Progress() *Progress

func (*Upgrader) Upgrade

func (this *Upgrader) Upgrade() error

Jump to

Keyboard shortcuts

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