package version

import "github.com/moby/buildkit/version"

Index

Variables

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

Source Files

ua.go version.go

Version
v0.19.0
Published
Jan 20, 2025
Platform
js/wasm
Imports
4 packages
Last checked
12 hours ago

Tools for package owners.