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
Click to show internal directories.
Click to hide internal directories.