filtersutil

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: 4 Imported by: 8

Documentation

Overview

Package filtersutil provides utilities for working with yaml.Filter and kio.Filter interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyToJSON

func ApplyToJSON(filter kio.Filter, objs ...marshalerUnmarshaler) error

ApplyToJSON applies the filter to the json objects.

ApplyToJSON marshals the objects into a slice of yaml.RNodes, runs the filter on the slice, and then unmarshals the values back.

The filter must not create or delete objects because the objects are updated in place.

func GetRNode added in v0.1.5

func GetRNode(k json.Marshaler) (*yaml.RNode, error)

GetRNode converts k into an RNode

Types

This section is empty.

Jump to

Keyboard shortcuts

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