Documentation ¶
Index ¶
- func Contains[T comparable](s []T, v T) bool
- func Getenv(key, fallback string) string
- func GetenvBool(key string) bool
- func IsDirEmpty(dir string) (bool, error)
- func IsValidRandomID(s string) bool
- func IsValidSecretName(name string) bool
- func IsValidServiceName(name string) bool
- func IsValidTailName(name string) bool
- func Min(a, b int) int
- func RandomID() string
- func SleepWithContext(ctx context.Context, d time.Duration) error
- func SplitByComma(s string) []string
- func SubscriptionTierToString(tier defangv1.SubscriptionTier) string
- type OneOrList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](s []T, v T) bool
func GetenvBool ¶
GetenvBool returns the boolean value of an environment variable; defaults to false.
func IsDirEmpty ¶
func IsValidRandomID ¶
func IsValidSecretName ¶
func IsValidServiceName ¶
func IsValidTailName ¶
func SplitByComma ¶
func SubscriptionTierToString ¶
func SubscriptionTierToString(tier defangv1.SubscriptionTier) string
Types ¶
Directories ¶
Path | Synopsis |
---|---|
clouds
|
|
Package term provides support functions for dealing with terminals, as commonly found on UNIX systems.
|
Package term provides support functions for dealing with terminals, as commonly found on UNIX systems. |
Click to show internal directories.
Click to hide internal directories.