config

package
v0.0.0-...-d18f405 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseByExtension

func ParseByExtension(filename string) ([]filter.Filter, error)

func WriteFiltersToFile

func WriteFiltersToFile(ff filter.Filterfile, file string) error

Types

type YamlConfig

type YamlConfig struct {
	Archive map[string][]string `yaml:"archive"`
	Delete  []string            `yaml:"delete"`
	Label   map[string][]string `yaml:"label"`
}

YamlConfig is a configuration of labels from a yaml file

func (YamlConfig) ToFilters

func (y YamlConfig) ToFilters() []filter.Filter

ToFilters returns the list of filters from the yaml configuration

Jump to

Keyboard shortcuts

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