Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Netflix/hal-9001
/ functions
Functions
585 in github.com/Netflix/hal-9001
⨍
Functions
585
◇
Types & classes
101
↓ 1 callers
Function
GetPref
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 callers
Function
GetSchedules
(token string, params map[string][]string)
plugins/pagerduty/pd_schedule.go:52
↓ 1 callers
Function
GetServices
(token string, params map[string][]string)
plugins/pagerduty/pd_service.go:26
↓ 1 callers
Method
GetTopic
(roomId string)
hal/broker.go:27
↓ 1 callers
Function
GetUsers
(token string, params map[string][]string)
plugins/pagerduty/pd_user.go:61
↓ 1 callers
Method
HasBoolParam
(key string)
hal/cmd.go:1356
↓ 1 callers
Method
HasIdxParam
(idx int)
hal/cmd.go:841
↓ 1 callers
Method
HasIdxParam
(idx int)
hal/cmd.go:1366
↓ 1 callers
Method
HasKVParam
(key string)
hal/cmd.go:1338
↓ 1 callers
Method
HasKVParam
(key string)
hal/cmd.go:1342
↓ 1 callers
Method
Idx
()
hal/cmd.go:533
↓ 1 callers
Method
InactivePluginList
InactivePluginList returns a list of plugins that do not have any registered instances.
hal/plugins.go:295
↓ 1 callers
Method
InstanceSettings
InstanceSettings gets all the settings matching the settings defined by the plugin's Settings field.
hal/event.go:190
↓ 1 callers
Method
IsRequired
()
hal/cmd.go:192
↓ 1 callers
Method
Last
Last returns the wallclock time of the last run of the function.
hal/periodic.go:188
↓ 1 callers
Method
Leave
(roomId string)
hal/broker.go:28
↓ 1 callers
Method
ListNamedParams
ListNamedParams returns a list of all parameters via the interface NamedParam. Mainly for use in printing options, etc..
hal/cmd.go:1282
↓ 1 callers
Method
LoadFromDB
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 callers
Method
LoadInstances
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 callers
Method
LoadSettingsFromPrefs
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 callers
Method
NewBroker
NewBroker returns a new console.Broker.
brokers/console/broker.go:129
↓ 1 callers
Function
NewResponse
(status, message, incidentKey string)
plugins/pagerduty/pd_events_v1.go:100
↓ 1 callers
Function
NewV2Event
(routingKey string)
plugins/pagerduty/pd_events_v2.go:64
↓ 1 callers
Method
Plugin
Plugin filters the preference list by plugin, returning a new Prefs
hal/prefs.go:498
↓ 1 callers
Method
PutNodeAttr
(key, kind, attr, value string)
hal/directory.go:208
↓ 1 callers
Method
Required
()
hal/cmd.go:725
↓ 1 callers
Method
Required
()
hal/cmd.go:733
↓ 1 callers
Function
Router
Router returns the singleton router context. The router is initialized on the first call to this function.
hal/router.go:46
↓ 1 callers
Method
Save
()
plugins/pluginmgr/plugin.go:331
↓ 1 callers
Method
SaveInstances
SaveInstances saves plugin instances configurations to the database.
hal/persist_plugins.go:105
↓ 1 callers
Method
SaveToDB
Serialize the secret store, encrypt it, and store it in the database. Any errors during this process are fatal.
hal/secrets.go:206
↓ 1 callers
Function
Secrets
Secrets returns a handle for accessing secrets managed by hal.
hal/secrets.go:64
↓ 1 callers
Method
Send
(evt hal.Evt)
brokers/slack/broker.go:99
↓ 1 callers
Method
Send
(evt hal.Evt)
brokers/hipchat/broker.go:98
↓ 1 callers
Method
SendAsImage
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 callers
Method
SendDM
(evt Evt)
hal/broker.go:25
↓ 1 callers
Method
SendTable
(evt Evt, header []string, rows [][]string)
hal/broker.go:24
↓ 1 callers
Method
Set
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 callers
Method
Set
(key string, v interface{}, ttl time.Duration)
hal/ttlcache.go:90
↓ 1 callers
Method
SetEncryptionKey
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 callers
Method
SetTopic
(roomId, topic string)
hal/broker.go:26
↓ 1 callers
Method
SetUser
SetUser returns a copy of the pref with the User set to the provided string.
hal/prefs.go:444
↓ 1 callers
Method
Status
Status returns initialized/running/stopped state as a string.
hal/periodic.go:179
↓ 1 callers
Method
Stream
(out chan *Evt)
hal/broker.go:35
↓ 1 callers
Method
String
String returns the value as a string.
hal/cmd.go:1679
↓ 1 callers
Method
String
String returns the value as a string.
hal/cmd.go:1701
↓ 1 callers
Method
StringToChars
StringToChars takes a string and returns the FontChar
hal/text2image.go:82
↓ 1 callers
Method
StringToImage
StringToImage takes a string and renders it to an image.Image. Newlines are not respected. See: StringsToImage().
hal/text2image.go:127
↓ 1 callers
Method
StringToImages
StringToImages takes a string and returns a list of images
hal/text2image.go:102
↓ 1 callers
Function
Utf8Table
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 callers
Function
addAlias
(msg hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:142
↓ 1 callers
Function
addGroupPlugin
(evt hal.Evt, group, pluginName string)
plugins/pluginmgr/plugin.go:363
↓ 1 callers
Method
appendBoolParamInst
(*BoolParamInst)
hal/cmd.go:185
↓ 1 callers
Method
appendBoolParamInst
(pi *BoolParamInst)
hal/cmd.go:1583
↓ 1 callers
Method
appendKVParamInst
(*KVParamInst)
hal/cmd.go:184
↓ 1 callers
Method
appendKVParamInst
(pi *KVParamInst)
hal/cmd.go:1579
↓ 1 callers
Function
attachPlugin
(evt hal.Evt, pluginName, roomId, regex string)
plugins/pluginmgr/plugin.go:259
↓ 1 callers
Method
checkFields
()
plugins/pagerduty/pd_events_v2.go:134
↓ 1 callers
Method
checkRequired
()
plugins/pagerduty/pd_events_v1.go:154
↓ 1 callers
Function
cliFind
cliFind implements !pref find
plugins/prefmgr/plugin.go:205
↓ 1 callers
Function
cliList
cliList implements !pref list
plugins/prefmgr/plugin.go:169
↓ 1 callers
Function
cliRm
cliRm implements !pref rm <id>
plugins/prefmgr/plugin.go:245
↓ 1 callers
Function
cliSet
cliSet implements !pref set
plugins/prefmgr/plugin.go:217
↓ 1 callers
Function
defaultEnv
(key, def string)
example/everything/main.go:177
↓ 1 callers
Function
delGroupPlugin
(evt hal.Evt, group, plugin string)
plugins/pluginmgr/plugin.go:387
↓ 1 callers
Function
deletePrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:64
↓ 1 callers
Function
deleteReaction
(id, user, room, broker, reaction string)
plugins/archive/plugin.go:142
↓ 1 callers
Function
detachPlugin
(evt hal.Evt, plugin, roomId string)
plugins/pluginmgr/plugin.go:279
↓ 1 callers
Method
findAndAttachKeyParam
(sub *SubCmdInst)
hal/cmd.go:1211
↓ 1 callers
Function
firstWord
(userFrag, roomFrag qFrag)
plugins/blabber/plugin.go:234
↓ 1 callers
Function
formatOncallReply
(wanted string, exactMatchFound bool, matches map[string][]Oncall)
plugins/pagerduty/oncall_plugin.go:386
↓ 1 callers
Function
forwardChan
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 callers
Method
getCachedCalEvents
getCachedEvents fetches the calendar data from the Google Calendar API,
plugins/google_calendar/plugin.go:307
↓ 1 callers
Function
getPrefHandler
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 callers
Function
getTeamOncalls
getTeamOncalls fetches escalation policies for the team then the oncalls for those policies and returns a list.
plugins/pagerduty/oncall_plugin.go:177
↓ 1 callers
Function
getTopicFreq
(roomId string)
plugins/pagerduty/oncall_plugin.go:261
↓ 1 callers
Function
handleCommand
(evt *hal.Evt)
plugins/google_calendar/plugin.go:219
↓ 1 callers
Method
heartbeat
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 callers
Function
images
(evt hal.Evt)
plugins/docker/plugin.go:83
↓ 1 callers
Method
inEvent
inEvent processes one event and is intended to run in a goroutine.
hal/router.go:145
↓ 1 callers
Function
ingestPDschedules
(token string)
plugins/pagerduty/poller.go:154
↓ 1 callers
Function
ingestPDservices
(token string)
plugins/pagerduty/poller.go:110
↓ 1 callers
Function
ingestPDteams
(token string)
plugins/pagerduty/poller.go:91
↓ 1 callers
Function
ingestPDusers
(token string)
plugins/pagerduty/poller.go:56
↓ 1 callers
Function
insertReaction
(ts time.Time, id, user, room, broker, reaction string)
plugins/archive/plugin.go:134
↓ 1 callers
Function
kvCleanup
()
hal/kv.go:44
↓ 1 callers
Function
listAlias
(msg hal.Evt)
plugins/pagerduty/page_plugin.go:178
↓ 1 callers
Function
listGroupPlugin
(evt hal.Evt, group string)
plugins/pluginmgr/plugin.go:348
↓ 1 callers
Function
listInstances
(evt hal.Evt, roomId string)
plugins/pluginmgr/plugin.go:222
↓ 1 callers
Function
listMarks
(evt hal.Evt)
plugins/mark/plugin.go:86
↓ 1 callers
Function
listPlugins
(evt hal.Evt)
plugins/pluginmgr/plugin.go:204
↓ 1 callers
Method
listSubCmdInst
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 callers
Method
loop
loop is the goroutine's program loop
hal/periodic.go:78
↓ 1 callers
Method
mkNonce
()
hal/secrets.go:272
↓ 1 callers
Function
nextWord
for now, completely random, will add in probability later...
plugins/blabber/plugin.go:171
↓ 1 callers
Function
nospamReplyf
nospamReplyf keeps track of error replies and only replies with the same message once per hour.
plugins/google_calendar/plugin.go:203
↓ 1 callers
Method
outEvent
(evt *Evt)
hal/router.go:242
↓ 1 callers
Function
pageAlias
(evt hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:74
↓ 1 callers
Function
patchPrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:61
↓ 1 callers
Function
pollOncalls
(token string)
plugins/pagerduty/oncall_plugin.go:301
← previous
next →
201–300 of 585, ranked by callers