Affected by GO-2025-3829
and 5 other vulnerabilities
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
GO-2026-5617 : Docker: Race condition in docker cp allows bind mount redirection to host path in github.com/docker/docker
GO-2026-5668 : Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap in github.com/docker/docker
GO-2026-5746 : Docker: `PUT /containers/{id}/archive` executes container binary on the host in github.com/docker/docker
Discover Packages
github.com/docker/docker
pkg
useragent
package
Version:
v25.0.0-beta.2+incompa...
Opens a new window with list of versions in this module.
Published: Dec 12, 2023
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.