utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion added in v0.3.0

func CompareVersion(version1, version2 string) int

CompareVersion compare version1 and version2 If version1 is larger, return 1 If version2 is larger, return -1 otherwise return 0

func Decrypt

func Decrypt(secret string) (string, error)

Decrypt decrypts the passed secret using configured secret key

func Encrypt

func Encrypt(secret string) (string, error)

Encrypt encrypts the passed secret using AES with configured secret key

func GetChartNameFromDeploymentYAML added in v0.3.0

func GetChartNameFromDeploymentYAML(deploymentYAML string) string

func GetChartVersionFromDeploymentYAML added in v0.3.0

func GetChartVersionFromDeploymentYAML(deploymentYAML string) string

func IsDomainName

func IsDomainName(s string) bool

IsDomainName checks if a string is a presentation-format domain name

func Upgradeable added in v0.3.0

func Upgradeable(version string, versionlist []string) bool

Upgradeable If the versionlist contains a version number higher than version, then return true

func Upgradeablelist added in v0.3.0

func Upgradeablelist(version string, versionlist []string) []string

Upgradeablelist If the versionlist contains a version number higher than version, then return the upgradeable list

Types

This section is empty.

Jump to

Keyboard shortcuts

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