valid

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxAppNameLen      = 39
	AppNameRegExp      = `\A[a-z0-9]+(?:-[a-z0-9]+)*\z`
	TeamNameRegExp     = AppNameRegExp
	EnvNameRegExp      = AppNameRegExp
	SHA1CommitIDLength = 40
)

Variables

This section is empty.

Functions

func ApplicationName

func ApplicationName(name string) bool

func EnvironmentName

func EnvironmentName(env string) bool

{application}-{environment} should be a valid dns name

func LockId

func LockId(lockId string) bool

Lock names must be valid file names

func SHA1CommitID added in v1.22.0

func SHA1CommitID(commitID string) bool

func SHA1CommitIDPrefix added in v1.22.0

func SHA1CommitIDPrefix(prefix string) bool

func TeamName

func TeamName(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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