config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoOccurrenceConfig

func CoOccurrenceConfig(cfg *v1.Config)

CoOccurrenceConfig sets further configurations once config files and other runtime configurations are read. This is mostly a method to call once the mapstructure unmarshal already took place.

func NewBuildConfig

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

func NewConfig

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

func NewISO

func NewISO() *v1.LiveISO

func NewInstallElementalParitions

func NewInstallElementalParitions() v1.ElementalPartitions

func NewInstallSpec

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

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

func NewRawDisk

func NewRawDisk() *v1.RawDisk

func NewResetSpec

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

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

func NewRunConfig

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

func NewUpgradeSpec

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

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

func WithArch

func WithArch(arch string) func(r *v1.Config) error

func WithClient

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

func WithCloudInitRunner

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

func WithFs

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

func WithLogger

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

func WithLuet

func WithLuet(luet v1.LuetInterface) func(r *v1.Config) error

func WithMounter

func WithMounter(mounter mount.Interface) func(r *v1.Config) error

func WithRunner

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

func WithSyscall

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

Types

type GenericOptions

type GenericOptions func(a *v1.Config) error

Jump to

Keyboard shortcuts

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