Documentation ¶
Index ¶
- func Contains(a []string, x string) bool
- func DeleteDoubleWhiteSpace(slice []string) []string
- func Diff(x, y interface{}, updateSetting config.UpdateSetting) (string, error)
- func ExtractAnnotationsFromEvent(ctx context.Context, dynamicCli dynamic.Interface, mapper meta.RESTMapper, ...) (map[string]string, error)
- func GVRToString(gvr schema.GroupVersionResource) string
- func GetClusterNameFromKubectlCmd(cmd string) string
- 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 RemoveHyperlink(hyperlink string) string
- func StructDumper() litter.Options
- func TransformIntoTypedObject(obj *unstructured.Unstructured, typedObject interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDoubleWhiteSpace ¶ added in v0.8.0
DeleteDoubleWhiteSpace returns slice that removing whitespace from a arg slice
func Diff ¶ added in v0.13.0
func Diff(x, y interface{}, updateSetting config.UpdateSetting) (string, error)
Diff provides differences between two objects spec
func ExtractAnnotationsFromEvent ¶ added in v0.13.0
func ExtractAnnotationsFromEvent(ctx context.Context, dynamicCli dynamic.Interface, mapper meta.RESTMapper, obj *coreV1.Event) (map[string]string, error)
ExtractAnnotationsFromEvent returns annotations of InvolvedObject for the given event
func GVRToString ¶ added in v0.13.0
func GVRToString(gvr schema.GroupVersionResource) string
GVRToString converts GVR formats to string
func GetClusterNameFromKubectlCmd ¶ added in v0.13.0
GetClusterNameFromKubectlCmd this will return cluster name from kubectl command
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 ¶ added in v0.13.0
func GetResourceFromKind(mapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
GetResourceFromKind returns resource name for given Kind
func RemoveHyperlink ¶ added in v0.13.0
RemoveHyperlink removes the hyperlink text from url
func StructDumper ¶ added in v0.14.0
StructDumper default dumper for structs
func TransformIntoTypedObject ¶ added in v0.13.0
func TransformIntoTypedObject(obj *unstructured.Unstructured, typedObject interface{}) error
TransformIntoTypedObject uses unstructured interface and creates a typed object
Types ¶
This section is empty.