Skip to content

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, …

func (gridLayoutItemSpec *GridLayoutItemSpec) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two GridLayoutItemSpec objects.

func (gridLayoutItemSpec *GridLayoutItemSpec) Equals(other GridLayoutItemSpec) bool

Validate🔗

Validate checks all the validation constraints that may be defined on GridLayoutItemSpec fields for violations and returns them.

func (gridLayoutItemSpec *GridLayoutItemSpec) Validate() error