version

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

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