Documentation
¶
Overview ¶
Package emit writes export artifacts to disk.
Index ¶
- func ExportFiles(ex *contract.Export, rep *contract.Report, rootModule string) (map[string][]byte, error)
- func WriteExport(dir string, ex *contract.Export, rep *contract.Report, rootModule string) ([]string, error)
- func WriteFiles(dir string, files map[string][]byte) ([]string, error)
- func WriteInventory(dir string, inv *inventory.Inventory, rep *contract.Report) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportFiles ¶
func ExportFiles(ex *contract.Export, rep *contract.Report, rootModule string) ( map[string][]byte, error, )
ExportFiles renders matching Terraform and JSON artifacts before any file write.
func WriteExport ¶
func WriteExport(dir string, ex *contract.Export, rep *contract.Report, rootModule string) ( []string, error, )
WriteExport writes one export. It refuses to overwrite existing artifacts.
func WriteFiles ¶
WriteFiles checks every destination before writing. Exclusive creation also protects files and symlinks created between the check and the write.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.