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

config

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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 WithImageExtractor added in v0.3.0

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

func WithLogger

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

func WithMounter

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

func WithOCIImageExtractor added in v0.3.0

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

func WithPlatform added in v0.3.0

func WithPlatform(platform string) 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