nsboot

package
v0.0.391 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoUpdateEnabled

func AutoUpdateEnabled() bool

func ForceUpdate

func ForceUpdate(ctx context.Context, command string) error

func GetBootVersion

func GetBootVersion() (*storage.NamespaceBinaryVersion, error)

func NewerVersion added in v0.0.205

func NewerVersion(command string, ver *versioncheck.Status) bool

func SpawnedFromBoot

func SpawnedFromBoot() bool

Types

type NSPackage

type NSPackage struct {
	Command string
	Path    string
}

func CheckCachedUpdate added in v0.0.373

func CheckCachedUpdate(ctx context.Context, command string, currentVersion string) (*toolVersion, NSPackage, error)

func UpdateIfNeeded added in v0.0.373

func UpdateIfNeeded(ctx context.Context, command string, currentVersion string) (*toolVersion, NSPackage, error)

func (NSPackage) Execute

func (p NSPackage) Execute(ctx context.Context) error

func (NSPackage) ExecuteAndForwardExitCode

func (p NSPackage) ExecuteAndForwardExitCode(ctx context.Context, style colors.Style)

Jump to

Keyboard shortcuts

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