version

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildCommit string
View Source
var BuildDate string
View Source
var BuildVersionOverride string

Functions

This section is empty.

Types

type Info

type Info struct {
	*cobra.Command `json:"-"`
	Version        string `json:"Version,omitempty" yaml:"Version,omitempty"`
	Commit         string `json:"Commit,omitempty" yaml:"Commit,omitempty"`
	Date           string `json:"Date,omitempty" yaml:"Date,omitempty"`
	License        string `json:"License,omitempty" yaml:"License,omitempty"`
}

func NewInfo

func NewInfo(buildDate, buildCommit, buildVersionOverride, license string) *Info

func (*Info) LogVersion

func (info *Info) LogVersion(ctx context.Context)

Jump to

Keyboard shortcuts

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