Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶ added in v0.7.0
type CloudConfig struct {
WriteFiles []File `json:"write_files"`
RunCommands []string `json:"runcmd"`
}
CloudInit represents a limited subset of cloud-config that is supported.
func Parse ¶ added in v0.7.0
func Parse(raw string, replacer *strings.Replacer) (CloudConfig, error)
Parse a cloud-init YAML manifest (only a limited subset of keys of the CloudConfig struct are allowed). If the manifest starts with `## template: jinja`, then an optional replacer is applied on the manifest before parsing.
Click to show internal directories.
Click to hide internal directories.