Documentation ¶
Index ¶
- func NewBuildConfig(opts ...GenericOptions) *types.BuildConfig
- func NewConfig(opts ...GenericOptions) *types.Config
- func NewDisk(cfg *types.BuildConfig) *types.DiskSpec
- func NewDiskElementalPartitions(workdir string) types.ElementalPartitions
- func NewISO() *types.LiveISO
- func NewInitSpec() *types.InitSpec
- func NewInstallElementalPartitions() types.ElementalPartitions
- func NewInstallSpec(cfg types.Config) *types.InstallSpec
- func NewMountSpec(cfg types.Config) *types.MountSpec
- func NewResetSpec(cfg types.Config) (*types.ResetSpec, error)
- func NewRunConfig(opts ...GenericOptions) *types.RunConfig
- func NewUpgradeSpec(cfg types.Config) (*types.UpgradeSpec, error)
- func WithClient(client types.HTTPClient) func(r *types.Config) error
- func WithCloudInitRunner(ci types.CloudInitRunner) func(r *types.Config) error
- func WithFs(fs types.FS) func(r *types.Config) error
- func WithImageExtractor(extractor types.ImageExtractor) func(r *types.Config) error
- func WithLogger(logger types.Logger) func(r *types.Config) error
- func WithMounter(mounter types.Mounter) func(r *types.Config) error
- func WithOCIImageExtractor() func(r *types.Config) error
- func WithPlatform(platform string) func(r *types.Config) error
- func WithRunner(runner types.Runner) func(r *types.Config) error
- func WithSyscall(syscall types.SyscallInterface) func(r *types.Config) error
- type GenericOptions
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 NewDiskElementalPartitions ¶
func NewDiskElementalPartitions(workdir string) types.ElementalPartitions
func NewInitSpec ¶
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 NewResetSpec ¶
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 WithClient ¶
func WithClient(client types.HTTPClient) func(r *types.Config) error
func WithCloudInitRunner ¶
func WithCloudInitRunner(ci types.CloudInitRunner) func(r *types.Config) error
func WithImageExtractor ¶
func WithImageExtractor(extractor types.ImageExtractor) func(r *types.Config) error
func WithOCIImageExtractor ¶
func WithSyscall ¶
func WithSyscall(syscall types.SyscallInterface) func(r *types.Config) error
Types ¶
type GenericOptions ¶
Click to show internal directories.
Click to hide internal directories.