Documentation ¶
Index ¶
- Constants
- Variables
- func AddHeader(header, data string) string
- func FindYAMLWithKey(s string, opts ...Option) ([]string, 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 Option
- type Options
- type Stage
Constants ¶
View Source
const DefaultHeader = "#cloud-config"
Variables ¶
View Source
var MergeBootLine = func(o *Options) error { o.MergeBootCMDLine = true return nil }
Functions ¶
func FindYAMLWithKey ¶ added in v1.3.0
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"` 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"` // contains filtered or unexported fields }
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"` }
Click to show internal directories.
Click to hide internal directories.