version

package
v0.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 75

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Package is filled at linking time
	Package = "github.com/moby/buildkit"

	// Version holds the complete version number. Filled in at linking time.
	Version = defaultVersion

	// Revision is filled with the VCS (e.g. git) revision being used to build
	// the program at linking time.
	Revision = ""
)

Functions

func SetUserAgentProduct added in v0.12.0

func SetUserAgentProduct(name string, cb func() (version string))

SetUserAgentProduct sets a callback to get the version of a product to be included in the User-Agent header. The callback is called every time the User-Agent header is generated. Caller must ensure that the callback is cached if it is expensive to compute.

func UserAgent added in v0.10.0

func UserAgent() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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