Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUnstructured ¶
FromUnstructured takes unstructured object from (say from client-go/dynamic) and converts it into our duck types.
func ToUnstructured ¶
func ToUnstructured(desired OneOfOurs) (*unstructured.Unstructured, error)
ToUnstructured takes an instance of a OneOfOurs compatible type and converts it to unstructured.Unstructured. We take OneOfOurs in place or runtime.Object because sometimes we get resources that do not have their TypeMeta populated but that is required for unstructured.Unstructured to deserialize things, so we leverage our content-agnostic GroupVersionKind() method to populate this as-needed (in a copy, so that we don't modify the informer's copy, if that is what we are passed).
Types ¶
Click to show internal directories.
Click to hide internal directories.