Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamDescs = []check.ParameterDesc{
flagRolesNotFoundParamDesc,
resourcesParamDesc,
verbsParamDesc,
}
)
Functions ¶
func ParseAndValidate ¶
ParseAndValidate instantiates a Params object out of the passed map[string]interface{}, validates it, and returns it. The return type is interface{} to satisfy the type in the Template struct.
Types ¶
type Params ¶
type Params struct { // Set to true to flag the roles that are referenced in bindings but not found in the context FlagRolesNotFound bool `json:"flagRolesNotFound"` // An array of regular expressions specifying resources. e.g. ^secrets$ for secrets and ^*$ for any resources // +notnegatable Resources []string `json:"resources"` // An array of regular expressions specifying verbs. e.g. ^create$ for create and ^*$ for any k8s verbs // +notnegatable Verbs []string `json:"verbs"` }
Params represents the params accepted by this template.
Click to show internal directories.
Click to hide internal directories.