Documentation ¶
Index ¶
- func CmdRun(action data.ActionData, prefix, workingDir string) (string, int, error)
- func FileExists(location string) bool
- func GenSecret() string
- func GetAuthHeader(action data.ActionData) (bool, string)
- func GetCmd(action data.ActionData) (string, error)
- func HasAction(action string, group []data.ActionData) (bool, data.ActionData)
- func MergeGroups(oldGroups, newGroups map[string][]data.ActionData) map[string][]data.ActionData
- func TimeNow(tz string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthHeader ¶
func GetAuthHeader(action data.ActionData) (bool, string)
GetAuthHeader check if auth header is present and return header
func GetCmd ¶
func GetCmd(action data.ActionData) (string, error)
GetCmd returns cmd if not empty or return error
func HasAction ¶
func HasAction(action string, group []data.ActionData) (bool, data.ActionData)
HasAction verify action is not empty
func MergeGroups ¶
func MergeGroups(oldGroups, newGroups map[string][]data.ActionData) map[string][]data.ActionData
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.