service

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PruneFreeSpaceRequired uint64 = 50 * 1024 * 1024 * 1024
)

Settings

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cli.App, name string, aliases []string)

Register commands

func SyncRatioToPercent

func SyncRatioToPercent(in float64) float64

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

type StartMode added in v1.2.0

type StartMode int
const (
	// Start normally, with an update prompt if relevant
	StartMode_Normal StartMode = iota

	// Start without performing an update
	StartMode_NoUpdate

	// Start with forcing an automatic update if relevant
	StartMode_ForceUpdate
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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