common

package
v1.17.12 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckListDifference

func CheckListDifference(slice1 []string, slice2 []string) bool

func Contains

func Contains(list []string, s string) bool

func GetListDifference

func GetListDifference(slice1 []string, slice2 []string) []string

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

GetOperatorNamespace returns the namespace the operator should be running in.

func GetOwnerReferenceUIDs

func GetOwnerReferenceUIDs(ownerRefs []metav1.OwnerReference) []types.UID

func MakeSet

func MakeSet(strs []string) gset.Set

func Reverse

func Reverse(original []string) []string

func StringSliceContentEqual

func StringSliceContentEqual(slice1, slice2 []string) bool

StringSliceContentEqual checks if the contant from two string slice are the same

func ToStringSlice

func ToStringSlice(set gset.Set) []string

func UIDContains

func UIDContains(list []types.UID, s types.UID) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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