cat

package
v0.0.0-...-1ece54f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cat

func Cat(out io.Writer, files []string, fs fs.Filesystem) error

Cat reads YAML documents from the specified files and prints them one after another in the specified writer. If a YAML document has the same apiVersion, kind, namespace and name as a previous one it replaces it in the output.

func Stream

func Stream(out io.Writer, stream io.Reader) error

Stream reads YAML documents from the specified reader and prints them one after another in the specified writer. If a YAML document has the same apiVersion, kind, namespace and name as a previous one it replaces it in the output.

func StreamDecodeOnly

func StreamDecodeOnly(stream io.Reader) ([]*unstructured.Unstructured, error)

StreamDecodeOnly works like Stream, but returns a slice of unstructured objects instead of writing them to an output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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