Help us shape the future of Go! Take the 2026 Go Developer Survey

emit

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package emit writes export artifacts to disk.

Index

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

func WriteFiles(dir string, files map[string][]byte) ([]string, error)

WriteFiles checks every destination before writing. Exclusive creation also protects files and symlinks created between the check and the write.

func WriteInventory

func WriteInventory(dir string, inv *inventory.Inventory, rep *contract.Report) ([]string, error)

WriteInventory writes inventory.json and inventory-report.json without overwriting files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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