Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Channels. ChannelStable = "stable" // Timeouts. DefaultTimeout = 5 * time.Minute ExistingDockerDelay = 20 * time.Second WSLWarningDelay = 20 * time.Second DeprecationDelay = 10 * time.Second RetryDelay = 10 * time.Second // Paths. DefaultDownloadURL = "https://download.docker.com" DefaultRepoFile = "docker-ce.repo" // Docker paths. DockerBinPath1 = "/usr/bin/docker" DockerBinPath2 = "/usr/local/bin/docker" DockerBinPath3 = "/bin/docker" DockerSocket = "/var/run/docker.sock" // Files. OSReleaseFile = "/etc/os-release" ProcVersionFile = "/proc/version" DebianVersion = "/etc/debian_version" // Package names. PkgDockerCE = "docker-ce" PkgDockerCECLI = "docker-ce-cli" PkgContainerd = "containerd.io" PkgDockerCompose = "docker-compose-plugin" PkgDockerBuildx = "docker-buildx-plugin" PkgDockerScan = "docker-scan-plugin" PkgDockerRootlessExtras = "docker-ce-rootless-extras" // Shell commands. ShellEcho = "echo" // Distro names. DistroUbuntu = "ubuntu" DistroRaspbian = "raspbian" DistroOSMC = "osmc" DistroDebian = "debian" )
Variables ¶
This section is empty.
Functions ¶
func BuildPackageList ¶ added in v0.11.2
Types ¶
type DebianInstaller ¶ added in v0.11.2
type DebianInstaller struct {
// contains filtered or unexported fields
}
func NewDebianInstaller ¶ added in v0.11.2
func NewDebianInstaller(distro *Distro, opts *InstallOptions) *DebianInstaller
func (*DebianInstaller) Install ¶ added in v0.11.2
func (i *DebianInstaller) Install(shC string) error
type Detector ¶ added in v0.11.2
type Detector struct{}
func NewDetector ¶ added in v0.11.2
func NewDetector() *Detector
func (*Detector) CheckForked ¶ added in v0.11.2
func (*Detector) DetectDistro ¶ added in v0.11.2
type Distro ¶ added in v0.11.2
Distro represents a Linux distribution. ID is the distribution identifier (e.g., "ubuntu", "debian", "fedora"). Version should be a codename (e.g., "jammy", "bookworm") for Debian-based distros, or a version number (e.g., "39") for others like Fedora.
func (*Distro) HasCodename ¶ added in v0.11.2
HasCodename returns true if Version is a valid codename (non-numeric).
type Executor ¶ added in v0.11.2
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶ added in v0.11.2
func NewExecutor(opts *InstallOptions) *Executor
func (*Executor) RunCommands ¶ added in v0.11.2
func (*Executor) RunCommandsWithRetry ¶ added in v0.11.2
type InstallOptions ¶ added in v0.11.2
type InstallOptions struct {
// contains filtered or unexported fields
}
type Validator ¶ added in v0.11.2
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶ added in v0.11.2
func NewValidator(opts *InstallOptions) *Validator
func (*Validator) CheckDeprecation ¶ added in v0.11.2
func (*Validator) CheckExistingDocker ¶ added in v0.11.2
func (v *Validator) CheckExistingDocker()
func (*Validator) ValidateDistro ¶ added in v0.11.2
func (*Validator) ValidateOS ¶ added in v0.11.2
Click to show internal directories.
Click to hide internal directories.