Affected by GO-2022-1107
and 6 other vulnerabilities
GO-2022-1107 : Container build can leak any path on the host into the container in github.com/docker/docker
GO-2023-1699 : Docker Swarm encrypted overlay network may be unauthenticated in github.com/docker/docker
GO-2023-1700 : Docker Swarm encrypted overlay network traffic may be unencrypted in github.com/docker/docker
GO-2023-1701 : Docker Swarm encrypted overlay network with a single endpoint is unauthenticated in github.com/docker/docker
GO-2025-3829 : Moby firewalld reload removes bridge network isolation in github.com/docker/docker
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
Discover Packages
github.com/docker/docker
pkg
useragent
package
Version:
v20.10.19+incompatible
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 258
Opens a new window with list of known importers.
README
README
¶
This package provides helper functions to pack version information into a single User-Agent header.
Expand ▾
Collapse ▴
Documentation
¶
Package useragent provides helper functions to pack
version information into a single User-Agent header.
AppendVersions converts versions to a string and appends the string to the string base.
Each VersionInfo will be converted to a string in the format of
"product/version", where the "product" is get from the name field, while
version is get from the version field. Several pieces of version information
will be concatenated and separated by space.
Example:
AppendVersions("base", VersionInfo{"foo", "1.0"}, VersionInfo{"bar", "2.0"})
results in "base foo/1.0 bar/2.0".
VersionInfo is used to model UserAgent versions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.