MCPcopy Create free account

hub / github.com/digineo/go-uci / types & classes

Types & classes24 in github.com/digineo/go-uci

↓ 4 callersTypeAliaskeyword
keyword represents a special marker of the input: each (trimmed, non-empty) line of the input must start with a keywords.
items.go:95
↓ 3 callersTypeAliasscanToken
items.go:124
↓ 1 callersTypeAliasitemType
itemType defines the kind of lexed item https://talks.golang.org/2011/lex.slide#9
items.go:52
StructErrConfigAlreadyLoaded
ErrConfigAlreadyLoaded is returned by LoadConfig, if the given config name is already present.
errors.go:9
StructErrSectionNotFound
ErrSectionNotFound is returned by Get
errors.go:52
StructErrSectionTypeMismatch
ErrSectionTypeMismatch is returned by AddSection if the section-to-add already exists with a different type.
errors.go:28
StructErrUnknownOptionType
ErrUnknownOptionType is returned when trying to parse an invalid OptionType.
errors.go:18
TypeAliasOptionType
items.go:17
StructParseError
errors.go:39
InterfaceTree
Tree defines the base directory for UCI config files. The default value on OpenWrt devices point to /etc/config, so that is what the default tree uses
uci.go:16
Structconfig
NOTE: config, section and option types basically are AST nodes for the parser. The JSON struct tags are mainly for development and testing purposes: W
types.go:20
Structitem
item represents a lexeme (token) https://talks.golang.org/2011/lex.slide#8
items.go:11
Structlexer
lexer holds the state of the scanner. https://talks.golang.org/2011/lex.slide#22
lexer.go:20
StructmockTempFile
uci_test.go:519
StructmockTree
mockTree implements the Tree interface and an instance replaces the global defaultTree (see TestMain).
convenience_test.go:15
Structoption
An Option is the key to one or more values. Multiple values indicate a list option.
types.go:294
FuncTypescanFn
func(*scanner) scanFn
items.go:122
Structscanner
scanner is intertwined with lexer and groups lexemes into token (which is a typed list of items). Refer to the implementation of lexer for hints abou
parser.go:13
Structsection
A section represents a group of options in UCI. It may be named or unnamed. In the latter case, its synthetic name is constructed from the section typ
types.go:234
FuncTypestateFn
stateFn represents the state of the scanner as a function that returns the next state. https://talks.golang.org/2011/lex.slide#19, #27 and following
lexer.go:15
InterfacetmpFile
tmpFile is used by *tree.saveConfig to create/update a config file.
uci.go:401
StructtmpFileImpl
uci.go:419
Structtoken
items.go:157
Structtree
uci.go:80