distro

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distro

type Distro struct {
	// Name of the distro.
	Name string

	// DistroRepoDir is the path to the directory containing the user's clone of the
	// distro repo, i.e. the repo containing the distro's build configurations.
	DistroRepoDir string

	// AdvisoriesRepoDir is the path to the directory containing the user's clone of
	// the advisories repo, i.e. the repo containing the distro's advisory data.
	AdvisoriesRepoDir string

	// APKRepositoryURL is the URL to the distro's package repository (e.g.
	// "https://packages.wolfi.dev/os").
	APKRepositoryURL string

	// SupportedArchitectures is a list of architectures supported by the distro.
	SupportedArchitectures []string
}

Distro represents a wolfictl-compatible distro, along with important properties discovered about how the user interacts with the distro.

func Detect

func Detect() (Distro, error)

Detect tries to automatically detect which distro the user wants to operate on, and the corresponding directory paths for the distro and advisories repos.

Jump to

Keyboard shortcuts

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