Documentation
¶
Overview ¶
Package registry is used to register a distro
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDistroModuleNotFound = errors.New("distro support not found")
ErrDistroModuleNotFound is used when a distro module is not found in the registry
Functions ¶
func RegisterDistroModule ¶
RegisterDistroModule takes a MatchFunc and BuildFunc and adds them to the registry of known distros.
Types ¶
type BuildFunc ¶
type BuildFunc = func() any
BuildFunc is a function returns a basic distro object
func GetDistroModuleBuilder ¶
GetDistroModuleBuilder returns a BuildFunc used to construct a distro object
Click to show internal directories.
Click to hide internal directories.