Documentation
¶
Index ¶
- type Scope
- func (s *Scope) AddExclude(definition string) error
- func (s *Scope) AddExcludes(definitions []string) error
- func (s *Scope) AddInclude(definition string) error
- func (s *Scope) AddIncludes(definitions []string) error
- func (s *Scope) GetExcludes() []string
- func (s *Scope) GetIncludes() []string
- func (s *Scope) GetScope() []string
- func (s *Scope) IsExcluded(target string) bool
- func (s *Scope) IsExplicitScope() bool
- func (s *Scope) IsInScope(target string) bool
- type ScopeDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
Scope holds the include and exclude lists
func (*Scope) AddExclude ¶
AddExclude adds a new single exclude scope definition
func (*Scope) AddExcludes ¶
AddExcludes adds multiple exclude scope definitions from a slice
func (*Scope) AddInclude ¶
AddInclude adds a new single include scope definition
func (*Scope) AddIncludes ¶
AddIncludes adds multiple include scope definitions from a slice
func (*Scope) GetExcludes ¶
GetExcludes returns the exclude scope definitions as a slice of strings
func (*Scope) GetIncludes ¶
GetIncludes returns the include scope definitions as a slice of strings
func (*Scope) IsExcluded ¶
IsExcluded checks if a given target is explicitly excluded
func (*Scope) IsExplicitScope ¶
type ScopeDefinition ¶
type ScopeDefinition struct { Definition string // contains filtered or unexported fields }
ScopeDefinition holds the original string and its compiled regex
Click to show internal directories.
Click to hide internal directories.