utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES_CTR_Decrypt

func AES_CTR_Decrypt(encryptedData []byte, aesKey string) ([]byte, error)

AES_CTR_Decrypt decrypts base64 encoded string and returns plaintext (for backward compatibility)

func AES_CTR_Encrypt

func AES_CTR_Encrypt(plainText []byte, aesKey string) ([]byte, error)

AES_CTR_Encrypt encrypts plaintext and returns base64 encoded string (for backward compatibility)

func CompareBoolPoint added in v1.1.1

func CompareBoolPoint(name string, old, new *bool, reqLogger logr.Logger) bool

func CompareInt32

func CompareInt32(name string, old, new int32, reqLogger logr.Logger) bool

func CompareInt64 added in v1.1.1

func CompareInt64(name string, old, new int64, reqLogger logr.Logger) bool

func CompareIntPoint

func CompareIntPoint(name string, old, new *int, reqLogger logr.Logger) bool

func CompareStringValue

func CompareStringValue(name string, old, new string, reqLogger logr.Logger) bool

func Round

func Round(num float64) int

func SliceJoin

func SliceJoin(a []Stringer, sep string) string

SliceJoin concatenates the elements of a to create a single string. The separator string sep is placed between elements in the resulting string.

Types

type Stringer

type Stringer interface {
	String() string
}

Stringer implement the string interface

Jump to

Keyboard shortcuts

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