dockerversion

package
v27.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Jump to

Keyboard shortcuts

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