Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModeAlwaysAllow is the mode to set all requests as authorized ModeAlwaysAllow string = "AlwaysAllow" // ModeAlwaysDeny is the mode to set no requests as authorized ModeAlwaysDeny string = "AlwaysDeny" // ModeWebhook is the mode to make an external webhook call to authorize ModeWebhook string = "Webhook" )
Variables ¶
View Source
var AuthorizationModeChoices = []string{ModeAlwaysAllow, ModeAlwaysDeny, ModeWebhook}
AuthorizationModeChoices is the list of supported authorization modes
Functions ¶
func IsValidAuthorizationMode ¶
IsValidAuthorizationMode returns true if the given authorization mode is a valid one for the apiserver
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.