output

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirectory

func IsDirectory(output string) bool

IsDirectory returns true if the output ends with /

func Marshal

func Marshal(resources []*yaml.RNode, writer io.Writer) error

Marshal writes the given list of resources as YAML into the given writer

func ResourcePath

func ResourcePath(meta yaml.ResourceMeta, basePath string) string

ResourcePath derives the output path (using / as separator) from a given resource

Types

type Options

type Options struct {
	FileOrDir string
	Replace   bool
	Writer    io.Writer
}

Options specifies the output options

type Output

type Output interface {
	Write([]*yaml.RNode) error
}

Output specifies a kubernetes resource sink

func New

func New(o Options) (Output, error)

New creates a new output from the given options

Jump to

Keyboard shortcuts

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