util

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteArrayItem

func DeleteArrayItem(item string, list []string)

func DiffArray

func DiffArray(a []string, b []string) []string

func GetObjectGvr

func GetObjectGvr(restMapper meta.RESTMapper, obj interface{}) schema.GroupVersionResource

func InArray

func InArray(needle interface{}, haystack interface{}) bool

func Intersect

func Intersect(a []string, b []string) []string

func IsBelongsToProduct added in v0.3.0

func IsBelongsToProduct(res client.Object, productName string) bool

IsBelongsToProduct check resouces is maintain by nautes

func IsLegal added in v0.3.0

func IsLegal(res client.Object, productName string) error

IsLegal check resource is ready to used. When function a returns an error, it means that this resource should not be used anymore. This may be because the resource does not belong to the product

func JsonMarshalInterfaceToIOReader

func JsonMarshalInterfaceToIOReader(data interface{}) (io.Reader, error)

func PanicTrace

func PanicTrace()

Types

This section is empty.

Jump to

Keyboard shortcuts

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