Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorKindIsReservedWord is the error returned when a resource kind is a reserved word. ErrorKindIsReservedWord = Error("resource kind is a reserved word") )
Variables ¶
This section is empty.
Functions ¶
func KindIsReservedWord ¶
KindIsReservedWord returns true if the kind is a reserved word.
Types ¶
type Resource ¶
type Resource struct { // Kind is the kind of the resource. Kind string `json:"kind" yaml:"kind"` // Name is the name of the resource. Name string `json:"name" yaml:"name"` // Description is the description of the resource. Description string `json:"description" yaml:"description"` // Owner is the owner of the resource. Owner string `json:"owner" yaml:"owner"` // Data is the data of the resource. Data interface{} `json:"-" yaml:"-"` // contains filtered or unexported fields }
Resource is a resource.
func (*Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Resource) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Resource) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.