Skip to content

Kind🔗

--- Common types ---

Definition🔗

type Kind struct {
    Kind string `json:"kind"`
    Spec any `json:"spec"`
    Metadata any `json:"metadata,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Kind 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 (kind *Kind) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two Kind objects.

func (kind *Kind) Equals(other Kind) bool

Validate🔗

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

func (kind *Kind) Validate() error

See also🔗