Documentation ¶
Index ¶
- func CRDContainsResource(crd *unstructured.Unstructured, g schema.GroupVersionKind) (bool, error)
- func CRDResources(crd *unstructured.Unstructured) ([]schema.GroupVersionKind, error)
- func FromUnstructured(u *unstructured.Unstructured, as interface{}) error
- func PrintObject(object runtime.Object) (s string)
- func ReadObject(r io.Reader) (*unstructured.Unstructured, error)
- func SerializeToString(object runtime.Object) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRDContainsResource ¶
func CRDContainsResource(crd *unstructured.Unstructured, g schema.GroupVersionKind) (bool, error)
CRDContainsResource returns true if a CRD contains a resource.
func CRDResources ¶
func CRDResources(crd *unstructured.Unstructured) ([]schema.GroupVersionKind, error)
CRDResources returns a list of resources identified by group/version/kind a CRD supports.
func FromUnstructured ¶ added in v0.14.0
func FromUnstructured(u *unstructured.Unstructured, as interface{}) error
FromUnstructured converts an unstructured to a runtime object.
func PrintObject ¶
PrintObject prints an object's name and group/version/kind
func ReadObject ¶ added in v0.13.0
func ReadObject(r io.Reader) (*unstructured.Unstructured, error)
ReadObject reads an unstructured object from a reader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.