Documentation ¶
Index ¶
- Variables
- func CheckAndFireSecurityRule(orgID, constName, entityValue string)
- func GetPendingNotif(w http.ResponseWriter, r *http.Request)
- func InitStore(state *global.State)
- func InitStoreMock() *notifMock
- func ResolveNotif(w http.ResponseWriter, r *http.Request)
- func SendErrorReport(err error, desc string)
Constants ¶
This section is empty.
Variables ¶
var AdhocReq string = `` /* 37254-byte string literal not displayed */
var AdhocStatus string = `` /* 37213-byte string literal not displayed */
var DynamicAccess string = `` /* 35840-byte string literal not displayed */
var ResetPassword string = `` /* 37136-byte string literal not displayed */
var SecurityAlertTemplate string = `` /* 38532-byte string literal not displayed */
////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// //////////// Template for Security Alert /////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////
var Store adapter
Store is the package state variable which contains database connections
Functions ¶
func CheckAndFireSecurityRule ¶
func CheckAndFireSecurityRule(orgID, constName, entityValue string)
CheckAndFireSecurityRule when called based on constName queries database to see if there is a rule that has been enabled and matches situation. If true, it should also perform actions according to rule. Currently only hardcoded and email and dashboard notifications are supported.
func GetPendingNotif ¶
func GetPendingNotif(w http.ResponseWriter, r *http.Request)
func InitStoreMock ¶
func InitStoreMock() *notifMock
InitStoreMock will init mock state of this package
func ResolveNotif ¶
func ResolveNotif(w http.ResponseWriter, r *http.Request)
func SendErrorReport ¶
Log and send error report This function should be called in case of severe error resulting from bug in software itself
Types ¶
This section is empty.