util

package
v0.0.0-...-9d91e49 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext string, key []byte) (string, error)

func Encrypt

func Encrypt(plaintext string) (string, string, error)

func EqualWithKey

func EqualWithKey(pw string, key string) bool

func GenerateRandNum

func GenerateRandNum(length int) int

func Hash

func Hash(pw string) string

func ParseInterfaceMap

func ParseInterfaceMap(data interface{}, keys []string) interface{}

func PtrInt32

func PtrInt32(n int) *int32

Types

type Clients

type Clients int
const (
	GrpcClient Clients = iota
	HelmClient
	StoragePostgresClient
	MailClient
	DockerClient
	KubeClient
	HttpClient
	GitClient
	TraceClient
	GrpcInstallManager
	GrpcDeployManager
	GrpcRbacManager
	Nothing
)

func GetGrpcClient

func GetGrpcClient(host string) Clients

type Components

type Components int
const (
	SecretManager Components = iota
	DeployManager
	RbacManager
	TraceManager
	Gateway
	InstallManager
	WebhookManager
)

Jump to

Keyboard shortcuts

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