Documentation ¶
Index ¶
- func AddToSDKScheme(addToScheme addToSchemeFunc)
- func GetNameAndNamespace(object runtime.Object) (string, string, error)
- func ObjectInfo(kind, name, namespace string) string
- func RuntimeObjectFromUnstructured(u *unstructured.Unstructured) runtime.Object
- func RuntimeObjectIntoRuntimeObject(from runtime.Object, into runtime.Object) error
- func UnstructuredFromRuntimeObject(ro runtime.Object) *unstructured.Unstructured
- func UnstructuredIntoRuntimeObject(u *unstructured.Unstructured, into runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToSDKScheme ¶
func AddToSDKScheme(addToScheme addToSchemeFunc)
AddToSDKScheme allows CRDs to register their types with the sdk scheme
func GetNameAndNamespace ¶ added in v0.0.2
GetNameAndNamespace extracts the name and namespace from the given runtime.Object and returns a error if any of those is missing.
func ObjectInfo ¶ added in v0.0.2
func RuntimeObjectFromUnstructured ¶
func RuntimeObjectFromUnstructured(u *unstructured.Unstructured) runtime.Object
RuntimeObjectFromUnstructured converts an unstructured to a runtime object
func RuntimeObjectIntoRuntimeObject ¶ added in v0.0.2
RuntimeObjectIntoRuntimeObject unmarshalls an runtime.Object into a given runtime object
func UnstructuredFromRuntimeObject ¶
func UnstructuredFromRuntimeObject(ro runtime.Object) *unstructured.Unstructured
UnstructuredFromRuntimeObject converts a runtime object to an unstructured
func UnstructuredIntoRuntimeObject ¶ added in v0.0.2
func UnstructuredIntoRuntimeObject(u *unstructured.Unstructured, into runtime.Object) error
UnstructuredIntoRuntimeObject unmarshalls an unstructured into a given runtime object TODO: https://github.com/operator-framework/operator-sdk/issues/127
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.