Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectMetadata ¶
type ObjectMetadata struct { }
---- Metadata common to all resources ----
func (ObjectMetadata) GetObjectMetadata ¶
func (md ObjectMetadata) GetObjectMetadata() ObjectMetadata
type Resource ¶
type Resource interface {
GetTypeMetadata() TypeMetadata
}
All resources (and resource lists) implement the Resource interface.
type ResourceMetadata ¶
type ResourceMetadata interface {
GetObjectMetadata() ObjectMetadata
}
All resource Metadata (not lists) implement the ResourceMetadata interface.
type TypeMetadata ¶
type TypeMetadata struct { Kind string `json:"kind" validate:"required"` APIVersion string `json:"apiVersion" validate:"required"` }
---- Type metadata ----
All resource and resource lists embed a TypeMetadata as an anonymous field.
func (TypeMetadata) GetTypeMetadata ¶
func (md TypeMetadata) GetTypeMetadata() TypeMetadata
Click to show internal directories.
Click to hide internal directories.