inpututil

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapInputs

func MapInputs(inputs []*yaml.RNode, fn MapInputsFn) ([]*yaml.RNode, error)

MapInputs runs the function against each input Resource, providing the parsed metadata and returning the aggregated result

func MapInputsE

func MapInputsE(inputs []*yaml.RNode, fn MapInputsEFn) error

MapInputsE runs the function against each input Resource, providing the parsed metadata

func WrapErrorWithFile

func WrapErrorWithFile(err error, meta yaml.ResourceMeta) error

WrapErrorWithFile returns the original error wrapped with information about the file that the Resource was parsed from.

Types

type MapInputsEFn

type MapInputsEFn func(*yaml.RNode, yaml.ResourceMeta) error

type MapInputsFn

type MapInputsFn func(*yaml.RNode, yaml.ResourceMeta) ([]*yaml.RNode, error)

Jump to

Keyboard shortcuts

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