Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamDescs = []check.ParameterDesc{
forbiddenCapabilitiesParamDesc,
exceptionsParamDesc,
}
)
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 {
// List of capabilities that needs to be removed from containers.
// +noregex
// +notnegatable
ForbiddenCapabilities []string `json:"forbiddenCapabilities"`
// List of capabilities that are exceptions to the above list. This should only be filled
// when the above contains "all", and is used to forgive capabilities in ADD list.
// +noregex
// +notnegatable
Exceptions []string `json:"exceptions"`
}
Params represents the params accepted by this template.
Click to show internal directories.
Click to hide internal directories.