Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncludeFilterDocs ¶
func IncludeFilterDocs() docs.FieldSpecs
IncludeFilterDocs returns a docs spec for a metadata filter where keys are ignored by default and must be explicitly included.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter provides a way to filter keys based on a Config.
type IncludeFilterConfig ¶
type IncludeFilterConfig struct { IncludePrefixes []string `json:"include_prefixes" yaml:"include_prefixes"` IncludePatterns []string `json:"include_patterns" yaml:"include_patterns"` }
IncludeFilterConfig contains configuration fields for a metadata filter where keys are ignored by default and must be explicitly included.
func NewIncludeFilterConfig ¶
func NewIncludeFilterConfig() IncludeFilterConfig
NewIncludeFilterConfig returns an IncludeFilterConfig struct with default values.
func (IncludeFilterConfig) CreateFilter ¶
func (c IncludeFilterConfig) CreateFilter() (*Filter, error)
CreateFilter attempts to construct a filter object.
Click to show internal directories.
Click to hide internal directories.