output

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination

func Destination(path string, force bool) (*os.File, bool, error)

Destination resolves the writer to use for command output.

func SanitizeResources

func SanitizeResources(resources []manifest.Resource, excludeFields []string) []manifest.Resource

func WriteApplyResults

func WriteApplyResults(writer io.Writer, results []admin.ApplyResult, format string) error

func WriteComparisonReport

func WriteComparisonReport(writer io.Writer, report manifest.ComparisonReport, format string) error

func WriteJSON

func WriteJSON(writer io.Writer, payload interface{}) error

func WritePayload

func WritePayload(writer io.Writer, payload interface{}, format string) error

WritePayload writes a payload in one of the structured formats (json, yaml, toml).

func WriteRelationshipTable

func WriteRelationshipTable(writer io.Writer, relationships []manifest.RelationshipOperation) error

func WriteResourceTable

func WriteResourceTable(writer io.Writer, resources []manifest.Resource, detailed bool) error

func WriteResourcesToDir

func WriteResourcesToDir(dir string, resources []manifest.Resource,
	relationships []manifest.RelationshipOperation, format string, force bool) error

WriteResourcesToDir writes one file per resource into dir, plus an optional relationships file. Each resource is wrapped as a single-resource manifest so it round-trips through apply.

func WriteTOML

func WriteTOML(writer io.Writer, payload interface{}) error

func WriteYAML

func WriteYAML(writer io.Writer, payload interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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