Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildConfig

func NewBuildConfig(opts ...GenericOptions) *types.BuildConfig

func NewConfig

func NewConfig(opts ...GenericOptions) *types.Config

func NewDisk

func NewDisk(cfg *types.BuildConfig) *types.DiskSpec

func NewDiskElementalPartitions

func NewDiskElementalPartitions(workdir string) types.ElementalPartitions

func NewISO

func NewISO() *types.LiveISO

func NewInitSpec

func NewInitSpec() *types.InitSpec

NewInitSpec returns an InitSpec struct all based on defaults

func NewInstallElementalPartitions

func NewInstallElementalPartitions() types.ElementalPartitions

func NewInstallSpec

func NewInstallSpec(cfg types.Config) *types.InstallSpec

NewInstallSpec returns an InstallSpec struct all based on defaults and basic host checks (e.g. EFI vs BIOS)

func NewMountSpec

func NewMountSpec(cfg types.Config) *types.MountSpec

func NewResetSpec

func NewResetSpec(cfg types.Config) (*types.ResetSpec, error)

NewResetSpec returns a ResetSpec struct all based on defaults and current host state

func NewRunConfig

func NewRunConfig(opts ...GenericOptions) *types.RunConfig

func NewUpgradeSpec

func NewUpgradeSpec(cfg types.Config) (*types.UpgradeSpec, error)

NewUpgradeSpec returns an UpgradeSpec struct all based on defaults and current host state

func ReconcileUpgradeSpec added in v2.2.5

func ReconcileUpgradeSpec(r *types.RunConfig, spec *types.UpgradeSpec) error

ReconcileUpgradeSpec will check current mounts which may differ from elemental disovery from /sys/block tree as this skips multipathed devices which may be in use.

func WithClient

func WithClient(client types.HTTPClient) func(r *types.Config) error

func WithCloudInitRunner

func WithCloudInitRunner(ci types.CloudInitRunner) func(r *types.Config) error

func WithFs

func WithFs(fs types.FS) func(r *types.Config) error

func WithImageExtractor

func WithImageExtractor(extractor types.ImageExtractor) func(r *types.Config) error

func WithLogger

func WithLogger(logger types.Logger) func(r *types.Config) error

func WithMounter

func WithMounter(mounter types.Mounter) func(r *types.Config) error

func WithOCIImageExtractor

func WithOCIImageExtractor() func(r *types.Config) error

func WithPlatform

func WithPlatform(platform string) func(r *types.Config) error

func WithRunner

func WithRunner(runner types.Runner) func(r *types.Config) error

func WithSyscall

func WithSyscall(syscall types.SyscallInterface) func(r *types.Config) error

Types

type GenericOptions

type GenericOptions func(a *types.Config) error

Jump to

Keyboard shortcuts

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