config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToEnv

func ToEnv(inst Install) ([]string, error)

ToEnv converts the config into a slice env.

Types

type Config

type Config struct {
	Elemental   Elemental              `yaml:"elemental" json:"elemental,omitempty"`
	CloudConfig map[string]interface{} `yaml:"cloud-config,omitempty" json:"cloud-config,omitempty"`
}

func (*Config) DeepCopy added in v0.2.0

func (in *Config) DeepCopy() *Config

func (*Config) DeepCopyInto added in v0.2.0

func (in *Config) DeepCopyInto(out *Config)

type Elemental added in v0.2.0

type Elemental struct {
	Install      Install      `json:"install,omitempty" yaml:"install,omitempty"`
	Registration Registration `json:"registration,omitempty" yaml:"registration,omitempty"`
	SystemAgent  SystemAgent  `json:"system-agent,omitempty" yaml:"system-agent,omitempty"`
}

type Install

type Install struct {
	Firmware string `json:"firmware,omitempty" yaml:"firmware,omitempty"`
	Device   string `json:"device,omitempty" yaml:"device,omitempty"`
	NoFormat bool   `json:"no-format,omitempty" yaml:"no-format,omitempty"`

	ConfigURLs []string `json:"config-urls,omitempty" yaml:"config-urls,omitempty"`
	ISO        string   `json:"iso,omitempty" yaml:"iso,omitempty"`
	SystemURI  string   `json:"system-uri,omitempty" yaml:"system-uri,omitempty"`

	Debug    bool   `json:"debug,omitempty" yaml:"debug,omitempty"`
	TTY      string `json:"tty,omitempty" yaml:"tty,omitempty"`
	PowerOff bool   `json:"poweroff,omitempty" yaml:"poweroff,omitempty"`
	Reboot   bool   `json:"reboot,omitempty" yaml:"reboot,omitempty"`
	EjectCD  bool   `json:"eject-cd,omitempty" yaml:"eject-cd,omitempty"`
}

func (*Install) DeepCopy added in v0.2.0

func (in *Install) DeepCopy() *Install

func (*Install) DeepCopyInto added in v0.2.0

func (in *Install) DeepCopyInto(out *Install)

type Registration added in v0.2.0

type Registration struct {
	URL             string            `json:"url,omitempty" yaml:"url,omitempty" mapstructure:"url"`
	CACert          string            `json:"ca-cert,omitempty" yaml:"ca-cert,omitempty" mapstructure:"ca-cert"`
	EmulateTPM      bool              `json:"emulate-tpm,omitempty" yaml:"emulate-tpm,omitempty"`
	EmulatedTPMSeed int64             `json:"emulated-tpm-seed,omitempty" yaml:"emulated-tpm-seed,omitempty"`
	NoSMBIOS        bool              `json:"no-smbios,omitempty" yaml:"no-smbios,omitempty"`
	Labels          map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
}

type SystemAgent added in v0.2.0

type SystemAgent struct {
	URL             string `json:"url,omitempty" yaml:"url,omitempty"`
	Token           string `json:"token,omitempty" yaml:"token,omitempty"`
	SecretName      string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
	SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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