config

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBuildDisk

func ReadBuildDisk(b *types.BuildConfig, flags *pflag.FlagSet) (*types.DiskSpec, error)

func ReadBuildISO

func ReadBuildISO(b *types.BuildConfig, flags *pflag.FlagSet) (*types.LiveISO, error)

func ReadConfigBuild

func ReadConfigBuild(configDir string, flags *pflag.FlagSet, mounter types.Mounter) (*types.BuildConfig, error)

func ReadConfigRun

func ReadConfigRun(configDir string, flags *pflag.FlagSet, mounter types.Mounter) (*types.RunConfig, error)

func ReadInitSpec

func ReadInitSpec(r *types.RunConfig, flags *pflag.FlagSet) (*types.InitSpec, error)

func ReadInstallSpec

func ReadInstallSpec(r *types.RunConfig, flags *pflag.FlagSet) (*types.InstallSpec, error)

func ReadMountSpec

func ReadMountSpec(r *types.RunConfig, flags *pflag.FlagSet) (*types.MountSpec, error)

func ReadResetSpec

func ReadResetSpec(r *types.RunConfig, flags *pflag.FlagSet) (*types.ResetSpec, error)

func ReadUpgradeSpec

func ReadUpgradeSpec(r *types.RunConfig, flags *pflag.FlagSet, recoveryOnly bool) (*types.UpgradeSpec, error)

func UnmarshalerHook

func UnmarshalerHook() mapstructure.DecodeHookFunc

Types

type Unmarshaler

type Unmarshaler interface {
	CustomUnmarshal(interface{}) (bool, error)
}

Jump to

Keyboard shortcuts

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