filter

package
v0.0.0-...-ae41811 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filters = map[string]func() kio.Filter{
	"FileSetter":    func() kio.Filter { return &kiofilters.FileSetter{} },
	"FormatFilter":  func() kio.Filter { return &kiofilters.FormatFilter{} },
	"GrepFilter":    func() kio.Filter { return &kiofilters.GrepFilter{} },
	"MatchModifier": func() kio.Filter { return &kiofilters.MatchModifyFilter{} },
	"Modifier":      func() kio.Filter { return &kiofilters.Modifier{} },
	"LabelRemover":  func() kio.Filter { return &LabelRemover{} },
}

Functions

This section is empty.

Types

type FilterConfig

type FilterConfig struct {
	Kind    string    `yaml:"kind,omitempty"`
	Filters []KFilter `yaml:"filters,omitempty"`
}

type KFilter

type KFilter struct {
	kio.Filter
}

func (KFilter) MarshalYAML

func (f KFilter) MarshalYAML() (interface{}, error)

func (*KFilter) UnmarshalYAML

func (f *KFilter) UnmarshalYAML(unmarshal func(interface{}) error) error

type LabelRemover

type LabelRemover struct {
	Kind   string     `yaml:"kind,omitempty"`
	Labels []string   `yaml:"labels"`
	Paths  [][]string `yaml:"paths"`
}

func (LabelRemover) Filter

func (lr LabelRemover) Filter(input []*yaml.RNode) ([]*yaml.RNode, error)

Jump to

Keyboard shortcuts

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