Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAllowlist ¶
func ValidateAllowlist(command string, allowlist *Allowlist, mode AllowlistMode) (string, error)
Types ¶
type Allowlist ¶
type Allowlist struct {
// contains filtered or unexported fields
}
func LoadAllowlist ¶
type AllowlistMode ¶
type AllowlistMode string
const ( AllowlistModeOff AllowlistMode = "off" AllowlistModeWarn AllowlistMode = "warn" AllowlistModeEnforce AllowlistMode = "enforce" )
func ParseAllowlistMode ¶
func ParseAllowlistMode(value string) (AllowlistMode, error)
type CommandAssessment ¶
func AssessCommand ¶
func AssessCommand(command string, risk string, allowUnsafe bool) (CommandAssessment, error)
Click to show internal directories.
Click to hide internal directories.