Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiVersion ¶
Types ¶
type Wrapper ¶
type Wrapper struct { corev2.TypeMeta // Value is a valid Resource of concrete type Type. Value interface{} `json:"spec" yaml:"spec"` }
Wrapper is a generic wrapper, with a type field for distinguishing its contents.
func WrapResource ¶
func WrapResource(r interface{}) Wrapper
WrapResource wraps a Resource in a Wrapper that contains TypeMeta and ObjectMeta.
func (Wrapper) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler
func (*Wrapper) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
Click to show internal directories.
Click to hide internal directories.