Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(from runtime.Object, to runtime.Object) error
Convert converts the from object into the to object
func ConvertList ¶
func ConvertList(fromList runtime.Object, toList runtime.Object, new rest.Storage) error
ConvertList converts the objects from the from list and puts them into the to list
Types ¶
type Decoder ¶
type Decoder interface {
Decode(data []byte, defaults *schema.GroupVersionKind) (runtime.Object, error)
EncodeYAML(obj runtime.Object) ([]byte, error)
EncodeJSON(obj runtime.Object) ([]byte, error)
}
Decoder is the standard interface for decoding and encoding resources
func NewDecoder ¶
func NewDecoder(scheme *runtime.Scheme, strict bool) Decoder
NewDecoder creates a new universal decoder
Click to show internal directories.
Click to hide internal directories.