configuration

package
v0.0.0-...-82b71b7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Foo

func Foo() bool

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

Jump to

Keyboard shortcuts

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