utils

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(inter interface{}) interface{}

func ContainsNamespacedName

func ContainsNamespacedName(slice []types.NamespacedName, target metav1.ObjectMeta) bool

ContainsNamespacedName returns the available status

func ContainsString

func ContainsString(slice []string, value string) bool

ContainsString returns the available status

func FindItem

func FindItem(slice []string, value string) (int, bool)

FindItem returns the availability status and location

func GetObjectMeta

func GetObjectMeta(cfg map[string]interface{}) (*metav1.ObjectMeta, error)

func IgnoreNotFoundError

func IgnoreNotFoundError(err error) error

func RandID

func RandID() string

RandID returns random id

func RandIDWithLength

func RandIDWithLength(length int) string

RandIDWithLength returns random id with supplied charset

func RandUUID

func RandUUID() string

RandUUID returns random uuid

func ToNamespacedNameSlice

func ToNamespacedNameSlice(rawItems []interface{}) []types.NamespacedName

func ToStringSlice

func ToStringSlice(items []interface{}) []string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL