Documentation
¶
Index ¶
- Variables
- func DistroFactory(idStr string) distro.Distro
- func New(nameVer string) (distro.Distro, error)
- func PlatformFor(archStr, uefiVendor string) *platform.Data
- type BootcDistro
- func (d *BootcDistro) BootstrapContainer(a string) (string, error)
- func (d *BootcDistro) Codename() string
- func (d *BootcDistro) GetArch(arch string) (distro.Arch, error)
- func (d *BootcDistro) GetTweaks() *distro.Tweaks
- func (d *BootcDistro) ID() distro.ID
- func (d *BootcDistro) IDLike() manifest.Distro
- func (d *BootcDistro) ImageConfig() *distro.ImageConfig
- func (d *BootcDistro) ListArches() []string
- func (d *BootcDistro) ModulePlatformID() string
- func (d *BootcDistro) Name() string
- func (d *BootcDistro) OsVersion() string
- func (d *BootcDistro) Product() string
- func (d *BootcDistro) Releasever() string
- func (d *BootcDistro) Runner() runner.RunnerConf
- func (d *BootcDistro) SetBuildContainer(cinfo *bootc.Info) error
Constants ¶
This section is empty.
Variables ¶
var (
ErrDistroNotFound = errors.New("distribution not found")
)
Functions ¶
func DistroFactory ¶
func PlatformFor ¶ added in v0.241.0
Types ¶
type BootcDistro ¶ added in v0.241.0
type BootcDistro struct {
// contains filtered or unexported fields
}
func NewBootc ¶ added in v0.241.0
func NewBootc(name string, cinfo *bootc.Info) (*BootcDistro, error)
NewBootc returns a distro initialised with the provided information. All required information must be defined. There are no restrictions or requirements for the name of the distro and it is only used to identify this particular instance of the distribution. The name bootc is commonly used, unless multiple instances are created. To generate the github.com/osbuild/images/pkg/bootc.Info from a container ref, use the github.com/osbuild/images/pkg/bootc.Container type and its methods.
func (*BootcDistro) BootstrapContainer ¶ added in v0.241.0
func (d *BootcDistro) BootstrapContainer(a string) (string, error)
func (*BootcDistro) Codename ¶ added in v0.241.0
func (d *BootcDistro) Codename() string
func (*BootcDistro) GetArch ¶ added in v0.241.0
func (d *BootcDistro) GetArch(arch string) (distro.Arch, error)
func (*BootcDistro) GetTweaks ¶ added in v0.241.0
func (d *BootcDistro) GetTweaks() *distro.Tweaks
func (*BootcDistro) ID ¶ added in v0.241.0
func (d *BootcDistro) ID() distro.ID
func (*BootcDistro) IDLike ¶ added in v0.241.0
func (d *BootcDistro) IDLike() manifest.Distro
func (*BootcDistro) ImageConfig ¶ added in v0.241.0
func (d *BootcDistro) ImageConfig() *distro.ImageConfig
func (*BootcDistro) ListArches ¶ added in v0.241.0
func (d *BootcDistro) ListArches() []string
func (*BootcDistro) ModulePlatformID ¶ added in v0.241.0
func (d *BootcDistro) ModulePlatformID() string
func (*BootcDistro) Name ¶ added in v0.241.0
func (d *BootcDistro) Name() string
func (*BootcDistro) OsVersion ¶ added in v0.241.0
func (d *BootcDistro) OsVersion() string
func (*BootcDistro) Product ¶ added in v0.241.0
func (d *BootcDistro) Product() string
func (*BootcDistro) Releasever ¶ added in v0.241.0
func (d *BootcDistro) Releasever() string
func (*BootcDistro) Runner ¶ added in v0.241.0
func (d *BootcDistro) Runner() runner.RunnerConf
func (*BootcDistro) SetBuildContainer ¶ added in v0.241.0
func (d *BootcDistro) SetBuildContainer(cinfo *bootc.Info) error
SetBuildContainer configures the build to use a separate container for the build root. To generate the github.com/osbuild/images/pkg/bootc.Info from a container ref, use the github.com/osbuild/images/pkg/bootc.Container type and its methods.