MCPcopy Create free account

hub / github.com/digineo/go-uci / functions

Functions207 in github.com/digineo/go-uci

↓ 247 callersMethodmk
(val string)
test_test.go:37
↓ 38 callersMethodGet
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 callersFunctionnewOption
newOption returns a new option object.
types.go:301
↓ 24 callersMethodError
()
errors.go:44
↓ 24 callersFunctionNewTree
NewTree constructs new RootDir pointing to root.
uci.go:90
↓ 19 callersFunctionnewSection
newSection returns a new section object.
types.go:241
↓ 18 callersMethodGetSections
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 callersMethodDel
Del removes a fully qualified option.
uci.go:66
↓ 15 callersMethodnext
next returns the next rune in the input https://talks.golang.org/2011/lex.slide#31
lexer.go:106
↓ 13 callersMethoderrorf
(format string, args ...interface{})
parser.go:101
↓ 12 callersMethodSetType
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 callersMethodLoadConfig
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 callersMethodString
String implements fmt.Stringer interface. Useful for debugging https://talks.golang.org/2011/lex.slide#11
items.go:108
↓ 9 callersMethodbackup
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 callersMethodemit
emit emits a token https://talks.golang.org/2011/lex.slide#25
lexer.go:88
↓ 9 callersFunctionnewConfig
newConfig returns a new config object.
types.go:28
↓ 8 callersMethodnext
()
parser.go:67
↓ 7 callersMethodAddAnonymousSection
AddAnonymousSection adds a new anonymous section.
uci.go:74
↓ 7 callersMethodAddSection
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 callersMethodClose
()
uci.go:404
↓ 7 callersMethodCommit
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 callersMethodconsumeWhitespace
consumeWhitespace consumes (and ignores) space and tab characters.
lexer.go:182
↓ 6 callersMethodDelSection
DelSection remove a config section and its options.
uci.go:77
↓ 6 callersMethodignore
ignore skips over the pending input before this point. https://talks.golang.org/2011/lex.slide#32
lexer.go:119
↓ 5 callersMethodAdd
(s *section)
types.go:157
↓ 5 callersMethodensureConfigLoaded
(config string)
uci.go:211
↓ 5 callersMethoderrorf
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 callersMethodGetBool
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 callersMethodGetLast
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 callersMethodRemove
()
uci.go:405
↓ 4 callersMethodemit
(typ scanToken)
parser.go:96
↓ 3 callersMethodRevert
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 callersMethodaccept
(it itemType)
parser.go:86
↓ 3 callersMethodacceptIdent
acceptIdent consumes an UCI identifier [-_a-zA-Z0-9].
lexer.go:171
↓ 3 callersMethodbackup
(it item)
parser.go:82
↓ 3 callersMethodeof
()
parser.go:49
↓ 3 callersMethodeof
eof directly returns an EOF token.
lexer.go:81
↓ 3 callersMethodloadConfig
loadConfig actually reads a config file. Its call must be guarded by locking the tree's mutex.
uci.go:113
↓ 3 callersMethodnextItem
nextItem returns the next item from the input https://talks.golang.org/2011/lex.slide#41
lexer.go:45
↓ 3 callersMethodsectionName
(s *section)
types.go:203
↓ 2 callersMethodAdd
(o *option)
types.go:249
↓ 2 callersFunctionAddSection
AddSection delegates to the default tree. See Tree for details.
convenience.go:50
↓ 2 callersMethodChmod
(os.FileMode)
uci.go:403
↓ 2 callersMethodGet
Get fetches an option by name.
types.go:283
↓ 2 callersFunctionLoadConfig
LoadConfig delegates to the default tree. See Tree for details.
convenience.go:10
↓ 2 callersMethodMergeValues
(vs ...string)
types.go:317
↓ 2 callersMethodRename
(string)
uci.go:406
↓ 2 callersMethodSetValues
(vs ...string)
types.go:309
↓ 2 callersMethodSync
()
uci.go:407
↓ 2 callersMethodWriteTo
(w io.Writer)
types.go:35
↓ 2 callersMethodeach
(fn func(token) bool)
parser.go:218
↓ 2 callersMethodgetNamed
(name string)
types.go:71
↓ 2 callersMethodgetOrCreateConfig
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 callersMethodgetUnnamed
(name string)
types.go:132
↓ 2 callersFunctionisSpace
(r rune)
lexer.go:189
↓ 2 callersFunctionlex
lex starts the lexer https://talks.golang.org/2011/lex.slide#41
lexer.go:33
↓ 2 callersMethodlookupValues
(config, section, option string)
uci.go:234
↓ 2 callersMethodnextToken
()
parser.go:30
↓ 2 callersFunctionparse
parse tries to parse a named input string into a config object.
parser.go:229
↓ 2 callersMethodpeek
peek returns but does not consume the next rune in the input.
lexer.go:131
↓ 2 callersMethodrest
rest returns the not-yet ingested part of l.input.
lexer.go:203
↓ 2 callersFunctionscan
(name, input string)
parser.go:21
↓ 2 callersMethodstop
()
parser.go:53
↓ 2 callersFunctionunmangleSectionName
(name string)
types.go:89
↓ 1 callersMethodAddValue
(v string)
types.go:313
↓ 1 callersFunctionCommit
Commit delegates to the default tree. See Tree for details.
convenience.go:15
↓ 1 callersFunctionDel
Del delegates to the default tree. See Tree for details.
convenience.go:45
↓ 1 callersFunctionDelSection
DelSection delegates to the default tree. See Tree for details.
convenience.go:55
↓ 1 callersFunctionGet
Get delegates to the default tree. See Tree for details.
convenience.go:30
↓ 1 callersMethodGet
(config, section, option string)
uci.go:173
↓ 1 callersFunctionGetBool
GetBool delegates to the default tree. See Tree for details.
convenience.go:40
↓ 1 callersFunctionGetLast
GetLast delegates to the default tree. See Tree for details.
convenience.go:35
↓ 1 callersMethodGetLast
(config, section, option string)
uci.go:187
↓ 1 callersFunctionGetSections
GetSections delegates to the default tree. See Tree for details.
convenience.go:25
↓ 1 callersMethodMerge
(s *section)
types.go:162
↓ 1 callersMethodMerge
(o *option)
types.go:253
↓ 1 callersFunctionRevert
Revert delegates to the default tree. See Tree for details.
convenience.go:20
↓ 1 callersMethodaccept
accept consumes the next rune if it's from the valid set. https://talks.golang.org/2011/lex.slide#34
lexer.go:140
↓ 1 callersMethodacceptComment
acceptComment consumes a line comment starting with # until eol or eof.
lexer.go:158
↓ 1 callersMethodacceptRun
acceptRun consumes a run of runes from the valid set. https://talks.golang.org/2011/lex.slide#34
lexer.go:151
↓ 1 callersMethodcount
(typ string)
types.go:222
↓ 1 callersMethodemitString
emitString emits a string token. it removes the surrounding quotes.
lexer.go:96
↓ 1 callersFunctionequalItemList
(a, b []item)
parser_test.go:47
↓ 1 callersMethodindex
(s *section)
types.go:210
↓ 1 callersFunctionloadExpected
(t *testing.T, name string)
uci_test.go:18
↓ 1 callersMethodlookupOption
(config, section, option string)
uci.go:222
↓ 1 callersMethodpeek
()
parser.go:76
↓ 1 callersMethodsaveConfig
(c *config)
uci.go:355
↓ 1 callersMethodstop
stop closes the item channel, so that nextItem will (eventually) return an EOF token.
lexer.go:67
↓ 1 callersFunctiontestLexer
(t *testing.T, name, input string, expected []item)
lexer_test.go:17
↓ 1 callersFunctiontestParser
(t *testing.T, name, input string, expected []token)
parser_test.go:17
MethodAddAnonymousSection
(config, typ string)
uci.go:329
MethodAddAnonymousSection
(config, typ string)
convenience_test.go:68
MethodAddSection
(config, section, typ string)
uci.go:309
MethodAddSection
(config, section, typ string)
convenience_test.go:63
MethodChmod
(mode os.FileMode)
uci.go:421
MethodChmod
(mode os.FileMode)
uci_test.go:533
MethodClose
()
uci.go:422
MethodClose
()
uci_test.go:538
MethodCommit
()
uci.go:130
next →1–100 of 207, ranked by callers