Documentation ¶
Index ¶
- type HCLParser
- func (p HCLParser) CollectHCLFilePaths(baseDir string, paths []string) ([]string, error)
- func (p HCLParser) ConcatFiles(paths []string) (*hclwrite.File, error)
- func (p HCLParser) MergeFileBlocks(base *hclwrite.File, overlay *hclwrite.File) (*hclwrite.File, error)
- func (p HCLParser) ReadHCLFile(filename string) (*hclwrite.File, error)
- type Patch
- type Resource
- type Tfustomize
- type TfustomizeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HCLParser ¶
type HCLParser struct { }
func NewHCLParser ¶
func NewHCLParser() *HCLParser
func (HCLParser) CollectHCLFilePaths ¶
CollectHCLFilePaths returns a list of .if files in the given paths. If a path is a directory, it returns all .if files in the directory. If a path is a file, it returns the file if it has a .tf extension. The baseDir parameter is used as the root directory when constructing the full path of each file.
func (HCLParser) ConcatFiles ¶
ConcatFiles concatenates the contents of the given .tf files.
func (HCLParser) MergeFileBlocks ¶
type Tfustomize ¶
type Tfustomize struct {
SyntaxVersion string `hcl:"syntax_version,optional"`
}
type TfustomizeConfig ¶
type TfustomizeConfig struct { Tfustomize Tfustomize `hcl:"tfustomize,block"` Resources Resource `hcl:"resources,block"` Patches Patch `hcl:"patches,block"` }
func LoadConfig ¶
func LoadConfig(configPath string) (TfustomizeConfig, error)
Click to show internal directories.
Click to hide internal directories.