Documentation ¶
Index ¶
- Constants
- func AddHeader(header, data string) string
- func FilterKeys(d []byte) ([]byte, error)
- func FromString(s string, o interface{}) error
- func HasHeader(userdata, head string) (bool, string)
- func MergeYAML(objs ...interface{}) ([]byte, error)
- func SaveCloudConfig(name Stage, yc yip.YipConfig) error
- type Bundle
- type Bundles
- type Config
- type Install
- type Stage
Constants ¶
View Source
const ( DefaultWebUIListenAddress = ":8080" FilePrefix = "file://" )
View Source
const DefaultHeader = "#cloud-config"
Variables ¶
This section is empty.
Functions ¶
func FilterKeys ¶
FilterKeys is used to pass to any other pkg which might want to see which part of the config matches the Kairos config.
func FromString ¶
Types ¶
type Bundles ¶
type Bundles []Bundle
func (Bundles) Options ¶
func (b Bundles) Options() (res [][]bundles.BundleOption)
type Config ¶
type Config struct { Install *Install `yaml:"install,omitempty"` collector.Config `yaml:"-"` // TODO: Remove this too? ConfigURL string `yaml:"config_url,omitempty"` Options map[string]string `yaml:"options,omitempty"` FailOnBundleErrors bool `yaml:"fail_on_bundles_errors,omitempty"` Bundles Bundles `yaml:"bundles,omitempty"` GrubOptions map[string]string `yaml:"grub_options,omitempty"` Env []string `yaml:"env,omitempty"` }
func (Config) HasConfigURL ¶
HasConfigURL returns true if ConfigURL has been set and false if it's empty.
type Install ¶
type Install struct { Auto bool `yaml:"auto,omitempty"` Reboot bool `yaml:"reboot,omitempty"` Device string `yaml:"device,omitempty"` Poweroff bool `yaml:"poweroff,omitempty"` GrubOptions map[string]string `yaml:"grub_options,omitempty"` Bundles Bundles `yaml:"bundles,omitempty"` Encrypt []string `yaml:"encrypted_partitions,omitempty"` SkipEncryptCopyPlugins bool `yaml:"skip_copy_kcrypt_plugin,omitempty"` Env []string `yaml:"env,omitempty"` Image string `yaml:"image,omitempty"` EphemeralMounts []string `yaml:"ephemeral_mounts,omitempty"` BindMounts []string `yaml:"bind_mounts,omitempty"` }
Click to show internal directories.
Click to hide internal directories.