Documentation ¶
Index ¶
Constants ¶
View Source
const ( // YAMLExtension yaml YAMLExtension = "yaml" // YAMLExtension2 yml YAMLExtension2 = "yml" // JSONExtension json JSONExtension = "json" // TXTExtension txt TXTExtension = "txt" // TemplateExtension template TemplateExtension = "template" // UnknownExtension unknown UnknownExtension = "unknown" )
View Source
const PARAMETERS = "Parameters"
PARAMETERS is a constant to fetch Parameters from CFT
View Source
const RESOURCES = "Resources"
RESOURCES is a constant to fetch Resources from CFT
Variables ¶
This section is empty.
Functions ¶
func CFTFileExtensions ¶
func CFTFileExtensions() []string
CFTFileExtensions returns the valid extensions for AWS CFT (json | YAML | txt | template)
Types ¶
type CFTV1 ¶
type CFTV1 struct {
// contains filtered or unexported fields
}
CFTV1 struct implements the IacProvider interface
func (*CFTV1) LoadIacDir ¶
func (a *CFTV1) LoadIacDir(absRootDir string, options map[string]interface{}) (output.AllResourceConfigs, error)
LoadIacDir loads all CFT template files in the current directory.
func (*CFTV1) LoadIacFile ¶
func (a *CFTV1) LoadIacFile(absFilePath string, options map[string]interface{}) (allResourcesConfig output.AllResourceConfigs, err error)
LoadIacFile loads the specified CFT template file. Note that a single CFT template json file may contain multiple resource definitions.
Click to show internal directories.
Click to hide internal directories.