Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamDescs = []check.ParameterDesc{
requirementsTypeParamDesc,
lowerBoundMillisParamDesc,
upperBoundMillisParamDesc,
}
)
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 {
// The type of requirement. Use any to apply to both requests and limits.
// +enum=request
// +enum=limit
// +enum=any
// +required
RequirementsType string
// The lower bound of the requirement (inclusive), specified as
// a number of milli-cores.
// If not specified, it is treated as a lower bound of zero.
LowerBoundMillis int `json:"lowerBoundMillis"`
// The upper bound of the requirement (inclusive), specified as
// a number of milli-cores.
// If not specified, it is treated as "no upper bound".
UpperBoundMillis *int `json:"upperBoundMillis"`
}
Params represents the params accepted by this template.
Click to show internal directories.
Click to hide internal directories.