GridLayoutItemSpec🔗
Definition🔗
type GridLayoutItemSpec struct {
X int64 `json:"x"`
Y int64 `json:"y"`
Width int64 `json:"width"`
Height int64 `json:"height"`
// reference to a PanelKind from dashboard.spec.elements Expressed as JSON Schema reference
Element dashboardv2beta1.ElementReference `json:"element"`
Repeat *dashboardv2beta1.RepeatOptions `json:"repeat,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode GridLayoutItemSpec from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …
Equals🔗
Equals tests the equality of two GridLayoutItemSpec objects.
Validate🔗
Validate checks all the validation constraints that may be defined on GridLayoutItemSpec fields for violations and returns them.