util

package
v0.0.0-...-d8065e1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllCharSet = lowerCharSet + numberSet

	//Status Code for maximum app deployed limit.
	MaxAppDeployStatusCode = 429

	// Secret URL constants
	HTTPURL         = "http://"
	HTTPSURL        = "https://"
	DockerURL       = "docker.io"
	DockerServerURL = "https://index.docker.io/v1/"
	AWSURL          = "amazonaws"
	GCRURL          = "gcr.io"
	ACRURL          = "azurecr.io"

	// app-controller version
	Version = "app-controller version: v1.1"
)

Variables

View Source
var (
	//Kubeconfig path.
	Kubeconfig string

	//Valid NameSpace.
	ValidNameSpaceRegex = fmt.Sprintf(`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`)
	NoSpecialChar       = "[^a-zA-Z0-9]+"

	//Maximum App Deploy Error
	MaxAppDeployError = "Maximum App deploy limit reached!"
	ErrorsToken       = []string{"Token is expired", "Forbidden", "Token Invalid"}
	Errors            = []string{"Failed to parse image"}
)
View Source
var (

	//Pf9Dir is the base Pf9Dir to store logs.
	Pf9Dir = filepath.Join(logDir, "pf9")
	//AppControllerLogDir - Base Dir to store app-controller logs.
	AppControllerLogDir = filepath.Join(Pf9Dir, "app-controller")
	//AppControllerLog represents location of the log.
	AppControllerLog = filepath.Join(AppControllerLogDir, "app-controller.log")
)

Logger Variables.

Functions

func RegexValidate

func RegexValidate(name string) bool

Validate a regex.

Types

This section is empty.

Jump to

Keyboard shortcuts

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