MCPcopy Create free account

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

Functions585 in github.com/Netflix/hal-9001

↓ 1 callersFunctionGetPref
GetPref will retreive the most-specific preference from pref storage using the parameters provided. This is a bit like pattern matching. If no match i
hal/prefs.go:91
↓ 1 callersFunctionGetSchedules
(token string, params map[string][]string)
plugins/pagerduty/pd_schedule.go:52
↓ 1 callersFunctionGetServices
(token string, params map[string][]string)
plugins/pagerduty/pd_service.go:26
↓ 1 callersMethodGetTopic
(roomId string)
hal/broker.go:27
↓ 1 callersFunctionGetUsers
(token string, params map[string][]string)
plugins/pagerduty/pd_user.go:61
↓ 1 callersMethodHasBoolParam
(key string)
hal/cmd.go:1356
↓ 1 callersMethodHasIdxParam
(idx int)
hal/cmd.go:841
↓ 1 callersMethodHasIdxParam
(idx int)
hal/cmd.go:1366
↓ 1 callersMethodHasKVParam
(key string)
hal/cmd.go:1338
↓ 1 callersMethodHasKVParam
(key string)
hal/cmd.go:1342
↓ 1 callersMethodIdx
()
hal/cmd.go:533
↓ 1 callersMethodInactivePluginList
InactivePluginList returns a list of plugins that do not have any registered instances.
hal/plugins.go:295
↓ 1 callersMethodInstanceSettings
InstanceSettings gets all the settings matching the settings defined by the plugin's Settings field.
hal/event.go:190
↓ 1 callersMethodIsRequired
()
hal/cmd.go:192
↓ 1 callersMethodLast
Last returns the wallclock time of the last run of the function.
hal/periodic.go:188
↓ 1 callersMethodLeave
(roomId string)
hal/broker.go:28
↓ 1 callersMethodListNamedParams
ListNamedParams returns a list of all parameters via the interface NamedParam. Mainly for use in printing options, etc..
hal/cmd.go:1282
↓ 1 callersMethodLoadFromDB
Load secrets from the database and decrypt them into hal's in-memory secret store. The database-side secrets will be added to the existing store, over
hal/secrets.go:161
↓ 1 callersMethodLoadInstances
LoadInstances loads the previously saved plugin instance configuration from the database and *merges* it with the plugin registry. This should be idem
hal/persist_plugins.go:35
↓ 1 callersMethodLoadSettingsFromPrefs
LoadSettingsFromPrefs loads all of the settings specified in the plugin Settings list into the instance's Settings list. Any current settings are repl
hal/plugins.go:184
↓ 1 callersMethodNewBroker
NewBroker returns a new console.Broker.
brokers/console/broker.go:129
↓ 1 callersFunctionNewResponse
(status, message, incidentKey string)
plugins/pagerduty/pd_events_v1.go:100
↓ 1 callersFunctionNewV2Event
(routingKey string)
plugins/pagerduty/pd_events_v2.go:64
↓ 1 callersMethodPlugin
Plugin filters the preference list by plugin, returning a new Prefs
hal/prefs.go:498
↓ 1 callersMethodPutNodeAttr
(key, kind, attr, value string)
hal/directory.go:208
↓ 1 callersMethodRequired
()
hal/cmd.go:725
↓ 1 callersMethodRequired
()
hal/cmd.go:733
↓ 1 callersFunctionRouter
Router returns the singleton router context. The router is initialized on the first call to this function.
hal/router.go:46
↓ 1 callersMethodSave
()
plugins/pluginmgr/plugin.go:331
↓ 1 callersMethodSaveInstances
SaveInstances saves plugin instances configurations to the database.
hal/persist_plugins.go:105
↓ 1 callersMethodSaveToDB
Serialize the secret store, encrypt it, and store it in the database. Any errors during this process are fatal.
hal/secrets.go:206
↓ 1 callersFunctionSecrets
Secrets returns a handle for accessing secrets managed by hal.
hal/secrets.go:64
↓ 1 callersMethodSend
(evt hal.Evt)
brokers/slack/broker.go:99
↓ 1 callersMethodSend
(evt hal.Evt)
brokers/hipchat/broker.go:98
↓ 1 callersMethodSendAsImage
SendAsImage sends the body of the event as a png file. The png is rendered using hal's FixedFont facility. This is useful for making sure pre-formatte
brokers/slack/broker.go:214
↓ 1 callersMethodSendDM
(evt Evt)
hal/broker.go:25
↓ 1 callersMethodSendTable
(evt Evt, header []string, rows [][]string)
hal/broker.go:24
↓ 1 callersMethodSet
Put adds a key/value to the in-memory secret store. Put'ing a key that already exists overwrites the previous value. The secret store is not persisted
hal/secrets.go:120
↓ 1 callersMethodSet
(key string, v interface{}, ttl time.Duration)
hal/ttlcache.go:90
↓ 1 callersMethodSetEncryptionKey
SetEncryptionKey sets the key used to encrypt/decrypt credentials stored in the database. This needs to be called before anything will work.
hal/secrets.go:77
↓ 1 callersMethodSetTopic
(roomId, topic string)
hal/broker.go:26
↓ 1 callersMethodSetUser
SetUser returns a copy of the pref with the User set to the provided string.
hal/prefs.go:444
↓ 1 callersMethodStatus
Status returns initialized/running/stopped state as a string.
hal/periodic.go:179
↓ 1 callersMethodStream
(out chan *Evt)
hal/broker.go:35
↓ 1 callersMethodString
String returns the value as a string.
hal/cmd.go:1679
↓ 1 callersMethodString
String returns the value as a string.
hal/cmd.go:1701
↓ 1 callersMethodStringToChars
StringToChars takes a string and returns the FontChar
hal/text2image.go:82
↓ 1 callersMethodStringToImage
StringToImage takes a string and renders it to an image.Image. Newlines are not respected. See: StringsToImage().
hal/text2image.go:127
↓ 1 callersMethodStringToImages
StringToImages takes a string and returns a list of images
hal/text2image.go:102
↓ 1 callersFunctionUtf8Table
Utf8Table is like AsciiTable but it uses UTF8 characters for the table borders. It should look nice when rendered to an image by Hal's text->img.
hal/utf8table.go:27
↓ 1 callersFunctionaddAlias
(msg hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:142
↓ 1 callersFunctionaddGroupPlugin
(evt hal.Evt, group, pluginName string)
plugins/pluginmgr/plugin.go:363
↓ 1 callersMethodappendBoolParamInst
(*BoolParamInst)
hal/cmd.go:185
↓ 1 callersMethodappendBoolParamInst
(pi *BoolParamInst)
hal/cmd.go:1583
↓ 1 callersMethodappendKVParamInst
(*KVParamInst)
hal/cmd.go:184
↓ 1 callersMethodappendKVParamInst
(pi *KVParamInst)
hal/cmd.go:1579
↓ 1 callersFunctionattachPlugin
(evt hal.Evt, pluginName, roomId, regex string)
plugins/pluginmgr/plugin.go:259
↓ 1 callersMethodcheckFields
()
plugins/pagerduty/pd_events_v2.go:134
↓ 1 callersMethodcheckRequired
()
plugins/pagerduty/pd_events_v1.go:154
↓ 1 callersFunctioncliFind
cliFind implements !pref find
plugins/prefmgr/plugin.go:205
↓ 1 callersFunctioncliList
cliList implements !pref list
plugins/prefmgr/plugin.go:169
↓ 1 callersFunctioncliRm
cliRm implements !pref rm <id>
plugins/prefmgr/plugin.go:245
↓ 1 callersFunctioncliSet
cliSet implements !pref set
plugins/prefmgr/plugin.go:217
↓ 1 callersFunctiondefaultEnv
(key, def string)
example/everything/main.go:177
↓ 1 callersFunctiondelGroupPlugin
(evt hal.Evt, group, plugin string)
plugins/pluginmgr/plugin.go:387
↓ 1 callersFunctiondeletePrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:64
↓ 1 callersFunctiondeleteReaction
(id, user, room, broker, reaction string)
plugins/archive/plugin.go:142
↓ 1 callersFunctiondetachPlugin
(evt hal.Evt, plugin, roomId string)
plugins/pluginmgr/plugin.go:279
↓ 1 callersMethodfindAndAttachKeyParam
(sub *SubCmdInst)
hal/cmd.go:1211
↓ 1 callersFunctionfirstWord
(userFrag, roomFrag qFrag)
plugins/blabber/plugin.go:234
↓ 1 callersFunctionformatOncallReply
(wanted string, exactMatchFound bool, matches map[string][]Oncall)
plugins/pagerduty/oncall_plugin.go:386
↓ 1 callersFunctionforwardChan
forwardChan forwards events from one chan of to another. TODO: figure out if this needs to check for closed channels, etc.
hal/router.go:60
↓ 1 callersMethodgetCachedCalEvents
getCachedEvents fetches the calendar data from the Google Calendar API,
plugins/google_calendar/plugin.go:307
↓ 1 callersFunctiongetPrefHandler
getPrefHandler returns all prefs as a JSON document. There are currently no parameters for server-side filtering, that will be done client-side.
plugins/prefmgr/http.go:44
↓ 1 callersFunctiongetTeamOncalls
getTeamOncalls fetches escalation policies for the team then the oncalls for those policies and returns a list.
plugins/pagerduty/oncall_plugin.go:177
↓ 1 callersFunctiongetTopicFreq
(roomId string)
plugins/pagerduty/oncall_plugin.go:261
↓ 1 callersFunctionhandleCommand
(evt *hal.Evt)
plugins/google_calendar/plugin.go:219
↓ 1 callersMethodheartbeat
Keepalive is a timer loop that can be fired up to periodically send keepalive messages to the Hipchat server in order to prevent Hipchat from shutting
brokers/hipchat/broker.go:170
↓ 1 callersFunctionimages
(evt hal.Evt)
plugins/docker/plugin.go:83
↓ 1 callersMethodinEvent
inEvent processes one event and is intended to run in a goroutine.
hal/router.go:145
↓ 1 callersFunctioningestPDschedules
(token string)
plugins/pagerduty/poller.go:154
↓ 1 callersFunctioningestPDservices
(token string)
plugins/pagerduty/poller.go:110
↓ 1 callersFunctioningestPDteams
(token string)
plugins/pagerduty/poller.go:91
↓ 1 callersFunctioningestPDusers
(token string)
plugins/pagerduty/poller.go:56
↓ 1 callersFunctioninsertReaction
(ts time.Time, id, user, room, broker, reaction string)
plugins/archive/plugin.go:134
↓ 1 callersFunctionkvCleanup
()
hal/kv.go:44
↓ 1 callersFunctionlistAlias
(msg hal.Evt)
plugins/pagerduty/page_plugin.go:178
↓ 1 callersFunctionlistGroupPlugin
(evt hal.Evt, group string)
plugins/pluginmgr/plugin.go:348
↓ 1 callersFunctionlistInstances
(evt hal.Evt, roomId string)
plugins/pluginmgr/plugin.go:222
↓ 1 callersFunctionlistMarks
(evt hal.Evt)
plugins/mark/plugin.go:86
↓ 1 callersFunctionlistPlugins
(evt hal.Evt)
plugins/pluginmgr/plugin.go:204
↓ 1 callersMethodlistSubCmdInst
listSubCmdInst returns a list of subcommand instances from the command line in natural order, e.g. "cmd sub1 -f sub2 -x sub3 -y" => [sub1, sub2, sub3]
hal/cmd.go:1221
↓ 1 callersMethodloop
loop is the goroutine's program loop
hal/periodic.go:78
↓ 1 callersMethodmkNonce
()
hal/secrets.go:272
↓ 1 callersFunctionnextWord
for now, completely random, will add in probability later...
plugins/blabber/plugin.go:171
↓ 1 callersFunctionnospamReplyf
nospamReplyf keeps track of error replies and only replies with the same message once per hour.
plugins/google_calendar/plugin.go:203
↓ 1 callersMethodoutEvent
(evt *Evt)
hal/router.go:242
↓ 1 callersFunctionpageAlias
(evt hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:74
↓ 1 callersFunctionpatchPrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:61
↓ 1 callersFunctionpollOncalls
(token string)
plugins/pagerduty/oncall_plugin.go:301
← previousnext →201–300 of 585, ranked by callers