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
putPrefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:58
↓ 1 callers
Method
randSleep
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 callers
Function
rmAlias
(msg hal.Evt, parts []string)
plugins/pagerduty/page_plugin.go:164
↓ 1 callers
Function
rowsToString
(rows []wncRow)
plugins/blabber/plugin.go:198
↓ 1 callers
Function
run
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 callers
Function
savePlugins
(evt hal.Evt)
plugins/pluginmgr/plugin.go:248
↓ 1 callers
Function
topicFuncName
(roomId string)
plugins/pagerduty/oncall_plugin.go:368
↓ 1 callers
Function
topicUpdater
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
Method
AddAlias
(alias string)
hal/cmd.go:405
Method
AddAlias
AddAlias adds an alias to the parameter and returns the paramter.
hal/cmd.go:411
Method
AddBoolParam
AddBoolParam adds a boolean/flag parameter to the subcommand and returns the new parameter.
hal/cmd.go:362
Method
AddIdxParam
AddIdxParam adds a positional parameter to the subcommand and returns the new parameter.
hal/cmd.go:378
Method
AddKVParam
AddKVParam creates and adds a key/value parameter to the subcommand and returns the new parameter.
hal/cmd.go:347
Method
Bool
()
hal/cmd.go:1772
Method
Bool
()
hal/cmd.go:1776
Method
Bump
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
Function
Cache
()
hal/ttlcache.go:37
Method
Clone
Clone returns a full/deep copy of the Prefs list.
hal/prefs.go:413
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:578
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:587
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:596
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:663
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:672
Method
Cmd
Cmd returns the command the parameter belongs to. Panics if no command is attached.
hal/cmd.go:681
Function
DecrementCounter
(key string)
hal/counter.go:75
Method
DefInt
(def int)
hal/cmd.go:1942
Method
DefString
(def string)
hal/cmd.go:1915
Method
DelEdge
(keyA, kindA, keyB, kindB string)
hal/directory.go:252
Method
DelNode
(key, kind string)
hal/directory.go:203
Method
Delete
Delete removes the key from the in-memory secret store. This is not persisted.
hal/secrets.go:134
Method
Delete
(key string)
hal/ttlcache.go:99
Function
Directory
()
hal/directory.go:92
Method
Dump
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
Method
Duration
()
hal/cmd.go:1819
Method
EnableDebug
EnableDebug enables debug message propagation.
hal/logger.go:207
Method
Error
()
hal/cmd.go:199
Method
Error
Error fulfills the Error interface.
hal/cmd.go:211
Method
Error
Error fulfills the Error interface for UnsupportedTimeFormatError.
hal/cmd.go:222
Method
Error
()
plugins/google_calendar/google.go:51
Method
Error
()
plugins/google_calendar/google.go:58
Method
Exists
Exists checks to see if the provided key exists in the secret store.
hal/secrets.go:108
Function
ExistsKV
ExistsKV checks to see if a key exists in the kv. False if any errors are encountered.
hal/kv.go:58
Function
FindKey
FindKey is like Find() but the provide key is required.
hal/prefs.go:314
Function
FixedFont
FixedFont returns a handle for the embedded 8x16 VGA font.
hal/text2image.go:175
Method
Float
()
hal/cmd.go:1747
Method
Float
()
hal/cmd.go:1751
Function
ForceSqlDBHandle
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
Method
ForceToRoom
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
Method
ForceToUser
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
Method
Found
()
hal/cmd.go:713
Method
Found
()
hal/cmd.go:717
Method
Found
()
hal/cmd.go:721
Method
Get
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
Method
Get
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
Method
GetBoolParam
(key string)
hal/cmd.go:800
Method
GetBoolParamInst
GetBoolParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1437
Method
GetBoolParamInst
GetBoolParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1458
Function
GetCounter
(key string)
hal/counter.go:31
Method
GetEdges
()
hal/directory.go:278
Method
GetIdxParam
(int)
hal/cmd.go:183
Method
GetIdxParamInstByName
GetIdxParamInstByName gets an indexed parameter instance by its name.
hal/cmd.go:1550
Function
GetKV
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
Method
GetKVParam
(key string)
hal/cmd.go:790
Method
GetKVParamInst
GetKVParamInst gets a key/value parameter instance by its key.
hal/cmd.go:1396
Method
GetNeighbors
(key, kind string)
hal/directory.go:257
Method
GetNodeAttrs
()
hal/directory.go:328
Method
GetNodes
()
hal/directory.go:303
Function
GetPrefs
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
Function
GetScheduleOncalls
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Schedules/get_schedules_id
plugins/pagerduty/pd_schedule.go:30
Function
GetService
(token, id string)
plugins/pagerduty/pd_service.go:62
Method
GetTopic
(roomId string)
brokers/console/broker.go:162
Method
GetTopic
(roomId string)
brokers/slack/broker.go:183
Method
GetTopic
TODO: implement
brokers/hipchat/broker.go:131
Method
GetType
()
plugins/pagerduty/pd_events_v1.go:31
Method
GetType
()
plugins/pagerduty/pd_events_v1.go:177
Method
GetType
()
plugins/pagerduty/pd_events_v1.go:181
Function
GetUsersOncall
https://v2.developer.pagerduty.com/v2/page/api-reference#!/On-Calls/get_oncalls
plugins/pagerduty/pd_user.go:26
Method
HasBoolParam
(key string)
hal/cmd.go:831
Method
HasEdge
(keyA, kindA, keyB, kindB string)
hal/directory.go:232
Method
HasKVParam
(key string)
hal/cmd.go:821
Method
HasNode
(key, kind string)
hal/directory.go:188
Method
HasRoom
checks the cache to see if the room is known to this broker
brokers/slack/broker.go:300
Method
Idx
()
hal/cmd.go:545
Function
IncrementCounter
(key string)
hal/counter.go:61
Method
InitDB
()
hal/secrets.go:267
Method
Int
()
hal/cmd.go:1725
Method
Int
()
hal/cmd.go:1729
Function
IsDebug
IsDebug returns true of debug messages are enabled.
hal/logger.go:197
Method
IsDebug
IsDebug returns true of debug messages are enabled.
hal/logger.go:202
Method
IsRequired
()
hal/cmd.go:567
Method
IsRequired
()
hal/cmd.go:570
Method
IsRequired
()
hal/cmd.go:573
Method
Key
()
hal/cmd.go:529
Method
Key
()
hal/cmd.go:537
Method
Key
()
hal/cmd.go:541
Method
Key
Key filters the preference list by key, returning a new Prefs
hal/prefs.go:511
Method
Leave
(roomId string)
brokers/console/broker.go:157
Method
Leave
(roomId string)
brokers/slack/broker.go:178
Method
Leave
TODO: this is untested and may not be entirely correct
brokers/hipchat/broker.go:120
Method
Len
()
hal/prefs.go:558
← previous
next →
301–400 of 585, ranked by callers