MCPcopy Create free account

hub / github.com/Netflix/hal-9001 / functions

Functions585 in github.com/Netflix/hal-9001

↓ 1 callersFunctionputPrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:58
↓ 1 callersMethodrandSleep
randSleep selects a random number between 0 and 60 and sleeps that many seconds before returning. While sleeping, the pf status is set to "sleeping".
hal/periodic.go:198
↓ 1 callersFunctionrmAlias
(msg hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:164
↓ 1 callersFunctionrowsToString
(rows []wncRow)
plugins/blabber/plugin.go:198
↓ 1 callersFunctionrun
TODO: the idea is to be able to run an interactive container that may be more than a single command, e.g. an old-school question/answer script that as
plugins/docker/plugin.go:72
↓ 1 callersFunctionsavePlugins
(evt hal.Evt)
plugins/pluginmgr/plugin.go:248
↓ 1 callersFunctiontopicFuncName
(roomId string)
plugins/pagerduty/oncall_plugin.go:368
↓ 1 callersFunctiontopicUpdater
topicUpdater runs periodically to update the topic in the room it's configured in. To fully enable it, you need the oncall schedule id from the pagerd
plugins/pagerduty/oncall_plugin.go:312
MethodAddAlias
(alias string)
hal/cmd.go:405
MethodAddAlias
AddAlias adds an alias to the parameter and returns the paramter.
hal/cmd.go:411
MethodAddBoolParam
AddBoolParam adds a boolean/flag parameter to the subcommand and returns the new parameter.
hal/cmd.go:362
MethodAddIdxParam
AddIdxParam adds a positional parameter to the subcommand and returns the new parameter.
hal/cmd.go:378
MethodAddKVParam
AddKVParam creates and adds a key/value parameter to the subcommand and returns the new parameter.
hal/cmd.go:347
MethodBool
()
hal/cmd.go:1772
MethodBool
()
hal/cmd.go:1776
MethodBump
Bump schedules a periodic function to update outside of the scheduled times. The value of pf.Last() is updated when this is used.
hal/periodic.go:170
FunctionCache
()
hal/ttlcache.go:37
MethodClone
Clone returns a full/deep copy of the Prefs list.
hal/prefs.go:413
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:578
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:587
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:596
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:663
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:672
MethodCmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:681
FunctionDecrementCounter
(key string)
hal/counter.go:75
MethodDefInt
(def int)
hal/cmd.go:1942
MethodDefString
(def string)
hal/cmd.go:1915
MethodDelEdge
(keyA, kindA, keyB, kindB string)
hal/directory.go:252
MethodDelNode
(key, kind string)
hal/directory.go:203
MethodDelete
Delete removes the key from the in-memory secret store. This is not persisted.
hal/secrets.go:134
MethodDelete
(key string)
hal/ttlcache.go:99
FunctionDirectory
()
hal/directory.go:92
MethodDump
Dump returns a copy of the kv store. DO NOT USE IN PLUGINS. This returns an UNENCRYPTED copy of the kv store for CLI tools and debugging. This might g
hal/secrets.go:144
MethodDuration
()
hal/cmd.go:1819
MethodEnableDebug
EnableDebug enables debug message propagation.
hal/logger.go:207
MethodError
()
hal/cmd.go:199
MethodError
Error fulfills the Error interface.
hal/cmd.go:211
MethodError
Error fulfills the Error interface for UnsupportedTimeFormatError.
hal/cmd.go:222
MethodError
()
plugins/google_calendar/google.go:51
MethodError
()
plugins/google_calendar/google.go:58
MethodExists
Exists checks to see if the provided key exists in the secret store.
hal/secrets.go:108
FunctionExistsKV
ExistsKV checks to see if a key exists in the kv. False if any errors are encountered.
hal/kv.go:58
FunctionFindKey
FindKey is like Find() but the provide key is required.
hal/prefs.go:314
FunctionFixedFont
FixedFont returns a handle for the embedded 8x16 VGA font.
hal/text2image.go:175
MethodFloat
()
hal/cmd.go:1747
MethodFloat
()
hal/cmd.go:1751
FunctionForceSqlDBHandle
ForceSqlDBHandle can be used to forcibly replace the DB handle with another one, e.g. go-sqlmock. This is mainly here for tests, but it's also useful
hal/sqldb.go:66
MethodForceToRoom
ForceToRoom clones the event and returns a copy with ToRoom set to true. Takes priority over reply-via-dm routing. Useful for chaining, e.g. evt.ToRoo
hal/event.go:257
MethodForceToUser
ForceToUser clones the event and returns a copy with ToUser set to true. Takes priority over reply-via-dm routing. Useful for chaining.
hal/event.go:266
MethodFound
()
hal/cmd.go:713
MethodFound
()
hal/cmd.go:717
MethodFound
()
hal/cmd.go:721
MethodGet
Get returns the value of a key from the secret store. If the key doesn't exist, empty string is returned. To check existence, use Exists(string).
hal/secrets.go:95
MethodGet
Get retreives a cached value and stores the result in the value pointed to by v. The time to live is returned and may be 0 to indicate the item is exp
hal/ttlcache.go:55
MethodGetBoolParam
(key string)
hal/cmd.go:800
MethodGetBoolParamInst
GetBoolParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1437
MethodGetBoolParamInst
GetBoolParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1458
FunctionGetCounter
(key string)
hal/counter.go:31
MethodGetEdges
()
hal/directory.go:278
MethodGetIdxParam
(int)
hal/cmd.go:183
MethodGetIdxParamInstByName
GetIdxParamInstByName gets an indexed parameter instance by its name.
hal/cmd.go:1550
FunctionGetKV
GetKV retreives a value from the database. Returns value,ok style. Returns "", false if the query fails and "", true if there was no value available.
hal/kv.go:75
MethodGetKVParam
(key string)
hal/cmd.go:790
MethodGetKVParamInst
GetKVParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1396
MethodGetNeighbors
(key, kind string)
hal/directory.go:257
MethodGetNodeAttrs
()
hal/directory.go:328
MethodGetNodes
()
hal/directory.go:303
FunctionGetPrefs
GetPrefs retrieves a set of preferences from the database. The settings are matched exactly on user,broker,room,plugin. e.g. GetPrefs("", "", "", "upt
hal/prefs.go:131
FunctionGetScheduleOncalls
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Schedules/get_schedules_id
plugins/pagerduty/pd_schedule.go:30
FunctionGetService
(token, id string)
plugins/pagerduty/pd_service.go:62
MethodGetTopic
(roomId string)
brokers/console/broker.go:162
MethodGetTopic
(roomId string)
brokers/slack/broker.go:183
MethodGetTopic
TODO: implement
brokers/hipchat/broker.go:131
MethodGetType
()
plugins/pagerduty/pd_events_v1.go:31
MethodGetType
()
plugins/pagerduty/pd_events_v1.go:177
MethodGetType
()
plugins/pagerduty/pd_events_v1.go:181
FunctionGetUsersOncall
https://v2.developer.pagerduty.com/v2/page/api-reference#!/On-Calls/get_oncalls
plugins/pagerduty/pd_user.go:26
MethodHasBoolParam
(key string)
hal/cmd.go:831
MethodHasEdge
(keyA, kindA, keyB, kindB string)
hal/directory.go:232
MethodHasKVParam
(key string)
hal/cmd.go:821
MethodHasNode
(key, kind string)
hal/directory.go:188
MethodHasRoom
checks the cache to see if the room is known to this broker
brokers/slack/broker.go:300
MethodIdx
()
hal/cmd.go:545
FunctionIncrementCounter
(key string)
hal/counter.go:61
MethodInitDB
()
hal/secrets.go:267
MethodInt
()
hal/cmd.go:1725
MethodInt
()
hal/cmd.go:1729
FunctionIsDebug
IsDebug returns true of debug messages are enabled.
hal/logger.go:197
MethodIsDebug
IsDebug returns true of debug messages are enabled.
hal/logger.go:202
MethodIsRequired
()
hal/cmd.go:567
MethodIsRequired
()
hal/cmd.go:570
MethodIsRequired
()
hal/cmd.go:573
MethodKey
()
hal/cmd.go:529
MethodKey
()
hal/cmd.go:537
MethodKey
()
hal/cmd.go:541
MethodKey
Key filters the preference list by key, returning a new Prefs
hal/prefs.go:511
MethodLeave
(roomId string)
brokers/console/broker.go:157
MethodLeave
(roomId string)
brokers/slack/broker.go:178
MethodLeave
TODO: this is untested and may not be entirely correct
brokers/hipchat/broker.go:120
MethodLen
()
hal/prefs.go:558
← previousnext →301–400 of 585, ranked by callers