Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digineo/go-uci
/ functions
Functions
207 in github.com/digineo/go-uci
⨍
Functions
207
◇
Types & classes
24
↓ 247 callers
Method
mk
(val string)
test_test.go:37
↓ 38 callers
Method
Get
Get retrieves (all) values for a fully qualified option, and a boolean indicating whether the config file and the config section within exists.
uci.go:47
↓ 27 callers
Function
newOption
newOption returns a new option object.
types.go:301
↓ 24 callers
Method
Error
()
errors.go:44
↓ 24 callers
Function
NewTree
NewTree constructs new RootDir pointing to root.
uci.go:90
↓ 19 callers
Function
newSection
newSection returns a new section object.
types.go:241
↓ 18 callers
Method
GetSections
GetSections returns the names of all sections of a certain type in a config, and an error indicating whether the operation was successful.
uci.go:42
↓ 17 callers
Method
Del
Del removes a fully qualified option.
uci.go:66
↓ 15 callers
Method
next
next returns the next rune in the input https://talks.golang.org/2011/lex.slide#31
lexer.go:106
↓ 13 callers
Method
errorf
(format string, args ...interface{})
parser.go:101
↓ 12 callers
Method
SetType
SetType replaces the fully qualified option with the given values. It returns whether the config file and section exists. For new files and sections,
uci.go:63
↓ 10 callers
Method
LoadConfig
LoadConfig reads a config file into memory and returns nil. If the config is already loaded, and forceReload is false, an error of type ErrConfigAlrea
uci.go:25
↓ 10 callers
Method
String
String implements fmt.Stringer interface. Useful for debugging https://talks.golang.org/2011/lex.slide#11
items.go:108
↓ 9 callers
Method
backup
backup steps back one rune. Can be called only once per call of next. https://talks.golang.org/2011/lex.slide#32
lexer.go:126
↓ 9 callers
Method
emit
emit emits a token https://talks.golang.org/2011/lex.slide#25
lexer.go:88
↓ 9 callers
Function
newConfig
newConfig returns a new config object.
types.go:28
↓ 8 callers
Method
next
()
parser.go:67
↓ 7 callers
Method
AddAnonymousSection
AddAnonymousSection adds a new anonymous section.
uci.go:74
↓ 7 callers
Method
AddSection
AddSection adds a new config section. If the section already exists, and the types match (existing type and given type), nothing happens. Otherwise an
uci.go:71
↓ 7 callers
Method
Close
()
uci.go:404
↓ 7 callers
Method
Commit
Commit writes all changes back to the system. Note: this is not transaction safe. If, for whatever reason, the writing of any file fails, the succeed
uci.go:32
↓ 7 callers
Method
consumeWhitespace
consumeWhitespace consumes (and ignores) space and tab characters.
lexer.go:182
↓ 6 callers
Method
DelSection
DelSection remove a config section and its options.
uci.go:77
↓ 6 callers
Method
ignore
ignore skips over the pending input before this point. https://talks.golang.org/2011/lex.slide#32
lexer.go:119
↓ 5 callers
Method
Add
(s *section)
types.go:157
↓ 5 callers
Method
ensureConfigLoaded
(config string)
uci.go:211
↓ 5 callers
Method
errorf
errorf returns an error token and terminates the scan by passing back a nil pointer that will be the next state, terminating l.run. https://talks.gol
lexer.go:197
↓ 4 callers
Method
GetBool
GetBool works the same way as GetLast does but interprets the last specified value as a boolean. If the found value can't be interpreted as either tr
uci.go:57
↓ 4 callers
Method
GetLast
GetLast retrieves the last value that was defined for a fully qualified option, and a boolean indicating whether the config file, config section and t
uci.go:52
↓ 4 callers
Method
Remove
()
uci.go:405
↓ 4 callers
Method
emit
(typ scanToken)
parser.go:96
↓ 3 callers
Method
Revert
Revert undoes changes to the config files given as arguments. If no argument is given, all changes are reverted. This clears the internal memory and d
uci.go:37
↓ 3 callers
Method
accept
(it itemType)
parser.go:86
↓ 3 callers
Method
acceptIdent
acceptIdent consumes an UCI identifier [-_a-zA-Z0-9].
lexer.go:171
↓ 3 callers
Method
backup
(it item)
parser.go:82
↓ 3 callers
Method
eof
()
parser.go:49
↓ 3 callers
Method
eof
eof directly returns an EOF token.
lexer.go:81
↓ 3 callers
Method
loadConfig
loadConfig actually reads a config file. Its call must be guarded by locking the tree's mutex.
uci.go:113
↓ 3 callers
Method
nextItem
nextItem returns the next item from the input https://talks.golang.org/2011/lex.slide#41
lexer.go:45
↓ 3 callers
Method
sectionName
(s *section)
types.go:203
↓ 2 callers
Method
Add
(o *option)
types.go:249
↓ 2 callers
Function
AddSection
AddSection delegates to the default tree. See Tree for details.
convenience.go:50
↓ 2 callers
Method
Chmod
(os.FileMode)
uci.go:403
↓ 2 callers
Method
Get
Get fetches an option by name.
types.go:283
↓ 2 callers
Function
LoadConfig
LoadConfig delegates to the default tree. See Tree for details.
convenience.go:10
↓ 2 callers
Method
MergeValues
(vs ...string)
types.go:317
↓ 2 callers
Method
Rename
(string)
uci.go:406
↓ 2 callers
Method
SetValues
(vs ...string)
types.go:309
↓ 2 callers
Method
Sync
()
uci.go:407
↓ 2 callers
Method
WriteTo
(w io.Writer)
types.go:35
↓ 2 callers
Method
each
(fn func(token) bool)
parser.go:218
↓ 2 callers
Method
getNamed
(name string)
types.go:71
↓ 2 callers
Method
getOrCreateConfig
getOrCreateConfig loads the named config, or creates a new empty one if the file doesn't exist yet. Must be called with t.Lock held.
uci.go:291
↓ 2 callers
Method
getUnnamed
(name string)
types.go:132
↓ 2 callers
Function
isSpace
(r rune)
lexer.go:189
↓ 2 callers
Function
lex
lex starts the lexer https://talks.golang.org/2011/lex.slide#41
lexer.go:33
↓ 2 callers
Method
lookupValues
(config, section, option string)
uci.go:234
↓ 2 callers
Method
nextToken
()
parser.go:30
↓ 2 callers
Function
parse
parse tries to parse a named input string into a config object.
parser.go:229
↓ 2 callers
Method
peek
peek returns but does not consume the next rune in the input.
lexer.go:131
↓ 2 callers
Method
rest
rest returns the not-yet ingested part of l.input.
lexer.go:203
↓ 2 callers
Function
scan
(name, input string)
parser.go:21
↓ 2 callers
Method
stop
()
parser.go:53
↓ 2 callers
Function
unmangleSectionName
(name string)
types.go:89
↓ 1 callers
Method
AddValue
(v string)
types.go:313
↓ 1 callers
Function
Commit
Commit delegates to the default tree. See Tree for details.
convenience.go:15
↓ 1 callers
Function
Del
Del delegates to the default tree. See Tree for details.
convenience.go:45
↓ 1 callers
Function
DelSection
DelSection delegates to the default tree. See Tree for details.
convenience.go:55
↓ 1 callers
Function
Get
Get delegates to the default tree. See Tree for details.
convenience.go:30
↓ 1 callers
Method
Get
(config, section, option string)
uci.go:173
↓ 1 callers
Function
GetBool
GetBool delegates to the default tree. See Tree for details.
convenience.go:40
↓ 1 callers
Function
GetLast
GetLast delegates to the default tree. See Tree for details.
convenience.go:35
↓ 1 callers
Method
GetLast
(config, section, option string)
uci.go:187
↓ 1 callers
Function
GetSections
GetSections delegates to the default tree. See Tree for details.
convenience.go:25
↓ 1 callers
Method
Merge
(s *section)
types.go:162
↓ 1 callers
Method
Merge
(o *option)
types.go:253
↓ 1 callers
Function
Revert
Revert delegates to the default tree. See Tree for details.
convenience.go:20
↓ 1 callers
Method
accept
accept consumes the next rune if it's from the valid set. https://talks.golang.org/2011/lex.slide#34
lexer.go:140
↓ 1 callers
Method
acceptComment
acceptComment consumes a line comment starting with # until eol or eof.
lexer.go:158
↓ 1 callers
Method
acceptRun
acceptRun consumes a run of runes from the valid set. https://talks.golang.org/2011/lex.slide#34
lexer.go:151
↓ 1 callers
Method
count
(typ string)
types.go:222
↓ 1 callers
Method
emitString
emitString emits a string token. it removes the surrounding quotes.
lexer.go:96
↓ 1 callers
Function
equalItemList
(a, b []item)
parser_test.go:47
↓ 1 callers
Method
index
(s *section)
types.go:210
↓ 1 callers
Function
loadExpected
(t *testing.T, name string)
uci_test.go:18
↓ 1 callers
Method
lookupOption
(config, section, option string)
uci.go:222
↓ 1 callers
Method
peek
()
parser.go:76
↓ 1 callers
Method
saveConfig
(c *config)
uci.go:355
↓ 1 callers
Method
stop
stop closes the item channel, so that nextItem will (eventually) return an EOF token.
lexer.go:67
↓ 1 callers
Function
testLexer
(t *testing.T, name, input string, expected []item)
lexer_test.go:17
↓ 1 callers
Function
testParser
(t *testing.T, name, input string, expected []token)
parser_test.go:17
Method
AddAnonymousSection
(config, typ string)
uci.go:329
Method
AddAnonymousSection
(config, typ string)
convenience_test.go:68
Method
AddSection
(config, section, typ string)
uci.go:309
Method
AddSection
(config, section, typ string)
convenience_test.go:63
Method
Chmod
(mode os.FileMode)
uci.go:421
Method
Chmod
(mode os.FileMode)
uci_test.go:533
Method
Close
()
uci.go:422
Method
Close
()
uci_test.go:538
Method
Commit
()
uci.go:130
next →
1–100 of 207, ranked by callers