MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / isValidExt

Function isValidExt

pkg/config/filters.go:338–340  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

336}
337
338func isValidExt(path string) bool {
339 return filepath.Ext(path) == ".yml" || filepath.Ext(path) == ".yaml"
340}
341
342// LoadFilters loads rules from YAML files or URL addresses.
343func (f *Filters) LoadFilters() error {

Callers 3

LoadMacrosMethod · 0.85
LoadFiltersMethod · 0.85
validateRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected