version

package
v0.32.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReleaseTargetRelease releaseTarget = "release"
	ReleaseTargetDebug   releaseTarget = "debug"
)

Variables

This section is empty.

Functions

func AgentVersion added in v0.30.0

func AgentVersion() string

AgentVersion returns the connect agent version.

func GitCommit added in v0.30.0

func GitCommit() string

GitCommit returns the commit SHA that was used to build the current version.

func ReleaseTarget added in v0.29.0

func ReleaseTarget() releaseTarget

ReleaseTarget returns the target type that the binary was built with.

func UserAgent added in v0.30.0

func UserAgent() string

func Version added in v0.30.0

func Version() string

Version 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