Documentation ¶
Index ¶
- func Diff(x, y interface{}, updateSetting config.UpdateSetting) (string, error)
- func GetObjectMetaData(ctx context.Context, dynamicCli dynamic.Interface, mapper meta.RESTMapper, ...) (metaV1.ObjectMeta, error)
- func GetObjectTypeMetaData(obj interface{}) metaV1.TypeMeta
- func GetResourceFromKind(mapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func TransformIntoTypedObject(obj *unstructured.Unstructured, typedObject interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(x, y interface{}, updateSetting config.UpdateSetting) (string, error)
Diff provides differences between two objects.
func GetObjectMetaData ¶
func GetObjectMetaData(ctx context.Context, dynamicCli dynamic.Interface, mapper meta.RESTMapper, obj interface{}) (metaV1.ObjectMeta, error)
GetObjectMetaData returns metadata of the given object
func GetObjectTypeMetaData ¶
GetObjectTypeMetaData returns typemetadata of the given object
func GetResourceFromKind ¶
func GetResourceFromKind(mapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
GetResourceFromKind returns resource name for given Kind
func TransformIntoTypedObject ¶
func TransformIntoTypedObject(obj *unstructured.Unstructured, typedObject interface{}) error
TransformIntoTypedObject uses unstructured interface and creates a typed object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.