Documentation ¶
Index ¶
- Constants
- func ParseHclBytes(src []byte, filename string) (*hclwrite.File, error)
- func ParseHclFile(filename string) (*hclwrite.File, error)
- func RenameInFile(filename string, file *hclwrite.File, fromAddress, toAddress *Address) error
- func RenameLocalInFile(filename string, file *hclwrite.File, fromAddress, toAddress *Address) error
- func RenameVariablePrefixInBody(blockType string, body *hclwrite.Body, fromAddress, toAddress *Address)
- type Address
- type FileUpdate
- type TypeName
- type UpdatePlan
Constants ¶
View Source
const ( TypeResource TypeName = "resource" TypeOutput = "output" TypeVar = "var" TypeLocal = "local" TypeData = "data" TypeModule = "module" )
Variables ¶
This section is empty.
Functions ¶
func ParseHclBytes ¶
Source parses HCL and returns *hclwrite.File filename is a metadata of input stream and used only for an error message.
func RenameInFile ¶
func RenameLocalInFile ¶
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func ParseAddress ¶
func (*Address) RefNameArray ¶
type FileUpdate ¶
type UpdatePlan ¶
type UpdatePlan struct {
FileUpdates []*FileUpdate
}
func Mv ¶
func Mv(fromAddressString, toFile, configPath string) (*UpdatePlan, error)
func Rename ¶
func Rename(fromAddressString, toAddressString, configPath string) (*UpdatePlan, error)
Click to show internal directories.
Click to hide internal directories.