version

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log()

Log logs the full version information.

func Print

func Print(w io.Writer) error

Print prints the full version information on the given writer.

func SetUserAgent added in v0.5.0

func SetUserAgent(req *http.Request)

SetUserAgent sets the user-agent on an HTTP request.

func String

func String() string

String returns a quick summary of version information.

func Version added in v0.5.0

func Version() string

Version returns the agent version.

Types

type Checker added in v0.6.0

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

Checker is able to check the agent version.

func NewChecker added in v0.6.0

func NewChecker(cluster clusterService) *Checker

NewChecker returns a new Checker.

func (Checker) Start added in v0.6.0

func (c Checker) Start(ctx context.Context) error

Start starts the check of the agent version.

type Status added in v0.6.0

type Status struct {
	UpToDate       bool   `json:"upToDate,omitempty"`
	CurrentVersion string `json:"currentVersion,omitempty"`
	LatestVersion  string `json:"latestVersion,omitempty"`
}

Status holds agent version data.

Jump to

Keyboard shortcuts

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