cftv1

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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.

func (*CFTV1) Name

func (*CFTV1) Name() string

Name returns name of the provider

Jump to

Keyboard shortcuts

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