package dockerversion

import "github.com/dotcloud/docker/dockerversion"

Index

Variables

var (
	GitCommit             = "library-import"
	Version               = "library-import"
	BuildTime             = "library-import"
	PlatformName          = ""
	ProductName           = ""
	DefaultProductLicense = ""
)

Default build-time variable for library-import. These variables are overridden on build with build-time information.

Functions

func DockerUserAgent

func DockerUserAgent(ctx context.Context, extraVersions ...useragent.VersionInfo) string

DockerUserAgent is the User-Agent the Docker client uses to identify itself. In accordance with RFC 7231 (5.5.3) is of the form:

[docker client's UA] UpstreamClient([upstream client's UA])

Types

type UAStringKey

type UAStringKey struct{}

UAStringKey is used as key type for user-agent string in net/context struct

Source Files

useragent.go version_lib.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
js/wasm
Imports
6 packages
Last checked
29 minutes ago

Tools for package owners.