utils

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adler32sum

func Adler32sum(input string) string

Adler32sum function receives a string, and computes its Adler-32 checksum Use the same definition as used in gotemplate functions

func CalculateHash

func CalculateHash(v interface{}) string

CalculateHash finds checksum of the string

func ContainsString

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

ContainsString checks whether a string is contained within a slice

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString removes a given string from a slice and returns the new slice. RemoveString does not modify the input slice

func SetOwnerReference

func SetOwnerReference(owner, object metav1.Object, scheme *runtime.Scheme) error

SetOwnerReference calls controllerutil.SetOwnerReference and also adds Interoperator Namespace Label for Filtering watch requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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