Documentation ¶
Index ¶
- func CreateMultipartArchive(files []ExpandedFile) (string, error)
- func ExpandTemplate(name, tpl string, extraKeys map[string]string) (string, error)
- func ValidateCloudConfig(payload string) error
- func ValidateScript(filename, payload string) error
- type CCFile
- type CCFiles
- type ExpandedFile
- type ExpandedFiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMultipartArchive ¶
func CreateMultipartArchive(files []ExpandedFile) (string, error)
func ExpandTemplate ¶
func ValidateCloudConfig ¶
func ValidateScript ¶
Types ¶
type CCFile ¶
type CCFile string
func (*CCFile) IsTemplate ¶
func (*CCFile) LoadAndExpand ¶
func (f *CCFile) LoadAndExpand(extraKeys map[string]string) (ExpandedFile, error)
func (*CCFile) NonTemplateName ¶
type CCFiles ¶
type CCFiles []CCFile
func CollectFiles ¶
func (CCFiles) LoadAndExpand ¶
func (files CCFiles) LoadAndExpand(extraKeys map[string]string) (result ExpandedFiles, err error)
type ExpandedFile ¶
type ExpandedFile struct { OriginalFilename string Filename string Content string IsScript bool IsTemplate bool }
func (*ExpandedFile) Validate ¶
func (e *ExpandedFile) Validate() error
type ExpandedFiles ¶
type ExpandedFiles []ExpandedFile
func (ExpandedFiles) Validate ¶
func (s ExpandedFiles) Validate() (result []error)
Click to show internal directories.
Click to hide internal directories.