cloudinit

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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.

type File added in v0.7.0

type File struct {
	Path        string `json:"path"`
	Owner       string `json:"owner"`
	Permissions string `json:"permissions"`
	Content     string `json:"content"`
}

Jump to

Keyboard shortcuts

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