Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Include []*FilterTreeNode Exclude []*FilterTreeNode }
func LoadConfiguration ¶
func LoadConfiguration(content []byte) (*Configuration, error)
func LoadConfigurationFile ¶
func LoadConfigurationFile(path string) (*Configuration, error)
func NewConfiguration ¶
func NewConfiguration(include []*FilterTreeNode, exclude []*FilterTreeNode) *Configuration
func (*Configuration) IsIncluded ¶
func (config *Configuration) IsIncluded(path ...string) InclusionResult
type FilterTreeNode ¶
type FilterTreeNode struct { Name string Children []*FilterTreeNode }
func NewFilterTreeNode ¶
func NewFilterTreeNode(name string, children ...*FilterTreeNode) *FilterTreeNode
type InclusionResult ¶
type InclusionResult int
const ( UnknownInclusion InclusionResult = 0 IncludedWithoutChildren InclusionResult = 1 IncludedWithChildren InclusionResult = 2 Excluded InclusionResult = 3 )
func (InclusionResult) String ¶
func (s InclusionResult) String() string
Click to show internal directories.
Click to hide internal directories.