Documentation
¶
Index ¶
Constants ¶
View Source
const (
PruneFreeSpaceRequired uint64 = 50 * 1024 * 1024 * 1024
)
Settings
Variables ¶
This section is empty.
Functions ¶
func RegisterCommands ¶
Register commands
func SyncRatioToPercent ¶
When printing sync percents, we should avoid printing 100%. This function is only called if we're still syncing, and the `%0.2f` token will round up if we're above 99.99%.
Types ¶
type DockerImageInfo ¶ added in v1.3.0
type DockerImageInfo struct {
// The domain for the repository that the image is pulled from, e.g. "docker.io" or "ghcr.io"
Domain string
// The vendor (owning organization the image is published under). Since Docker doesn't really have
// the concept of a vendor, this is everything in the repository name before the first '/'.
Vendor string
// The image name under the vendor. This is everything after the first '/' in the
// repository name.
Image string
// The tag of the image, AKA the "version" of it pulled from the repository for this image.
Tag string
}
A parsed breakdown of a Docker image string's components
func (DockerImageInfo) String ¶ added in v1.3.0
func (i DockerImageInfo) String() string
func (DockerImageInfo) StringWithoutTag ¶ added in v1.3.0
func (i DockerImageInfo) StringWithoutTag() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.