filtersutil

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetFn added in v0.6.0

type SetFn func(*yaml.RNode) error

SetFn is a function that accepts an RNode to possibly modify.

func SetEntry added in v0.6.0

func SetEntry(key, value, tag string) SetFn

SetEntry returns a SetFn to set an entry in a map

func SetScalar added in v0.6.0

func SetScalar(value string) SetFn

SetScalar returns a SetFn to set a scalar value

type TrackableSetter added in v0.11.0

type TrackableSetter struct {
	// contains filtered or unexported fields
}

func (TrackableSetter) SetEntry added in v0.11.0

func (s TrackableSetter) SetEntry(key, value, tag string) SetFn

SetEntry returns a SetFn to set an entry in a map if a mutation tracker has been registered, the tracker will be invoked each time an entry is set

func (TrackableSetter) SetScalar added in v0.11.0

func (s TrackableSetter) SetScalar(value string) SetFn

SetScalar returns a SetFn to set a scalar value if a mutation tracker has been registered, the tracker will be invoked each time a scalar is set

func (*TrackableSetter) WithMutationTracker added in v0.11.0

func (s *TrackableSetter) WithMutationTracker(callback func(key, value, tag string, node *yaml.RNode))

WithMutationTracker registers a callback which will be invoked each time a field is mutated

Jump to

Keyboard shortcuts

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