version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

version holds variables that identify a Prow binary's name and version

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the colloquial identifier for the compiled component
	Name = "unset"
	// Version is a concatenation of the commit SHA and date for the build
	Version = "0"
)

Functions

func UserAgent

func UserAgent() string

UserAgent exposes the component's name and version for user-agent header

func UserAgentWithIdentifier

func UserAgentWithIdentifier(identifier string) string

UserAgentFor exposes the component's name and version for user-agent header while embedding the additional identifier

func VersionTimestamp

func VersionTimestamp() (int64, error)

VersionTimestamp returns the timestamp of date derived from version

Types

This section is empty.

Jump to

Keyboard shortcuts

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