Affected by GO-2022-0390
and 3 other vulnerabilities
GO-2022-0390 : Moby (Docker Engine) started with non-empty inheritable Linux process capabilities in github.com/docker/docker
GO-2024-2914 : Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing in github.com/docker/docker
GO-2024-3304 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305 : Moby Race Condition vulnerability in github.com/moby/moby
Discover Packages
github.com/moby/moby
pkg
stringid
package
Version:
v1.12.1
Opens a new window with list of versions in this module.
Published: Aug 18, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
README
README
¶
This package provides helper functions for dealing with string identifiers
Expand ▾
Collapse ▴
Documentation
¶
Package stringid provides helper functions for dealing with string identifiers
func GenerateNonCryptoID() string
GenerateNonCryptoID generates unique id without using cryptographically
secure sources of random.
It helps you to save entropy.
func GenerateRandomID() string
GenerateRandomID returns a unique id.
IsShortID determines if an arbitrary string *looks like* a short ID.
TruncateID returns a shorthand version of a string identifier for convenience.
A collision with other shorthands is very unlikely, but possible.
In case of a collision a lookup with TruncIndex.Get() will fail, and the caller
will need to use a longer prefix, or the full-length Id.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.