version

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValueNotConfigured  = errors.New("value is not set in context")
	ErrIllegalContextValue = errors.New("illegal value is set in context")
)

Functions

func CreateVersionContext

func CreateVersionContext(ctx context.Context, version *VersionInfo) context.Context

Types

type VersionInfo

type VersionInfo struct {
	BuildDate string `json:"buildDate" yaml:"buildDate"`
	Commit    string `json:"commit" yaml:"commit"`
	Version   string `json:"version" yaml:"version"`
}

func GetVersion

func GetVersion(ctx context.Context) (*VersionInfo, error)

Jump to

Keyboard shortcuts

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