...

Package inpututil

import "sigs.k8s.io/kustomize/kyaml/inpututil"
Overview
Index

Overview ▾

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.

type MapInputsEFn

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

type MapInputsFn

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