utils

package
v0.0.0-...-449ca5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdRun

func CmdRun(action data.ActionData, prefix, workingDir string) (string, int, error)

CmdRun runs a shell command or script and returns output with error

func FileExists

func FileExists(location string) bool

FileExists

func GenSecret

func GenSecret() string

GenSecret

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

func TimeNow

func TimeNow(tz string) string

TimeNow

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL