Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digineo/go-uci
/ types & classes
Types & classes
24 in github.com/digineo/go-uci
⨍
Functions
207
◇
Types & classes
24
↓ 4 callers
TypeAlias
keyword
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 callers
TypeAlias
scanToken
items.go:124
↓ 1 callers
TypeAlias
itemType
itemType defines the kind of lexed item https://talks.golang.org/2011/lex.slide#9
items.go:52
Struct
ErrConfigAlreadyLoaded
ErrConfigAlreadyLoaded is returned by LoadConfig, if the given config name is already present.
errors.go:9
Struct
ErrSectionNotFound
ErrSectionNotFound is returned by Get
errors.go:52
Struct
ErrSectionTypeMismatch
ErrSectionTypeMismatch is returned by AddSection if the section-to-add already exists with a different type.
errors.go:28
Struct
ErrUnknownOptionType
ErrUnknownOptionType is returned when trying to parse an invalid OptionType.
errors.go:18
TypeAlias
OptionType
items.go:17
Struct
ParseError
errors.go:39
Interface
Tree
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
Struct
config
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
Struct
item
item represents a lexeme (token) https://talks.golang.org/2011/lex.slide#8
items.go:11
Struct
lexer
lexer holds the state of the scanner. https://talks.golang.org/2011/lex.slide#22
lexer.go:20
Struct
mockTempFile
uci_test.go:519
Struct
mockTree
mockTree implements the Tree interface and an instance replaces the global defaultTree (see TestMain).
convenience_test.go:15
Struct
option
An Option is the key to one or more values. Multiple values indicate a list option.
types.go:294
FuncType
scanFn
func(*scanner) scanFn
items.go:122
Struct
scanner
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
Struct
section
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
FuncType
stateFn
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
Interface
tmpFile
tmpFile is used by *tree.saveConfig to create/update a config file.
uci.go:401
Struct
tmpFileImpl
uci.go:419
Struct
token
items.go:157
Struct
tree
uci.go:80