cloudinit

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 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 CACerts

type CACerts struct {
	Trusted []string `json:"trusted,omitempty"`
}

CACerts reprsents cloud-config's ca-certs

type CloudConfig

type CloudConfig struct {
	CACerts    CACerts    `json:"ca-certs,omitempty"`
	WriteFiles WriteFiles `json:"write_files,omitempty"`
	RunCmd     []string   `json:"runcmd,omitempty"`
	BootCmd    []string   `json:"bootcmd,omitempty"`
}

CloudConfig represents a cloud-config file

func (*CloudConfig) Export

func (cloudConfig *CloudConfig) Export() (string, error)

Export exports the cloud-config contents

type WriteFiles

type WriteFiles struct {
	Encoding    string `json:"encoding,omitempty"`
	Content     string `json:"content,omitempty"`
	Path        string `json:"path,omitempty"`
	Permissions string `json:"permissions,omitempty"`
	Owner       string `json:"owner,omitempty"`
}

WriteFiles represents cloud-config's write_files

Jump to

Keyboard shortcuts

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