distroregistry

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(hostDistro distro.Distro, distros ...distro.Distro) (*Registry, error)

func NewDefault

func NewDefault() *Registry

NewDefault creates a Registry with all distributions supported by osbuild-composer. If you need to add a distribution here, see the supportedDistros variable.

func (*Registry) FromHost

func (r *Registry) FromHost() distro.Distro

FromHost returns a distro instance, that is specific to the host. Its name may differ from other supported distros, if the host version is e.g. a Beta or a Stream.

func (*Registry) GetDistro

func (r *Registry) GetDistro(name string) distro.Distro

func (*Registry) HostArchName

func (r *Registry) HostArchName() string

HostArchName returns the host's arch name

func (*Registry) List

func (r *Registry) List() []string

List returns the names of all distros in a Registry, sorted alphabetically.

func (*Registry) SetHostArchName

func (r *Registry) SetHostArchName(name string)

SetHostArchName can be used to override the host's arch name for testing

Jump to

Keyboard shortcuts

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