version

package
v0.27.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the current build version.

Types

type Informer added in v0.25.0

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

Informer enables the caller to determine if they can upgrade their current version of up.

func NewInformer added in v0.25.0

func NewInformer(opts ...Option) *Informer

NewInformer constructs a new Informer.

func (*Informer) CanUpgrade added in v0.25.0

func (i *Informer) CanUpgrade(ctx context.Context) (string, string, bool)

CanUpgrade queries locally for the version of up, uses the Informer's client to check what the currently published version of up is and returns the local and remote versions and whether or not we could upgrade up.

type Option added in v0.25.0

type Option func(*Informer)

Option modifies the Informer.

func WithLogger added in v0.25.0

func WithLogger(l logging.Logger) Option

WithLogger overrides the default logger for the Informer.

Jump to

Keyboard shortcuts

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