pkg

package
v0.0.0-...-5e4714a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](s []T, v T) bool

func Getenv

func Getenv(key, fallback string) string

Getenv returns the value of an environment variable; defaults to the fallback string.

func GetenvBool

func GetenvBool(key string) bool

GetenvBool returns the boolean value of an environment variable; defaults to false.

func IsDirEmpty

func IsDirEmpty(dir string) (bool, error)

func IsValidRandomID

func IsValidRandomID(s string) bool

func IsValidSecretName

func IsValidSecretName(name string) bool

func IsValidServiceName

func IsValidServiceName(name string) bool

func IsValidTailName

func IsValidTailName(name string) bool

func Min

func Min(a, b int) int

func RandomID

func RandomID() string

func SleepWithContext

func SleepWithContext(ctx context.Context, d time.Duration) error

func SplitByComma

func SplitByComma(s string) []string

func SubscriptionTierToString

func SubscriptionTierToString(tier defangv1.SubscriptionTier) string

Types

type OneOrList

type OneOrList []string

func (*OneOrList) UnmarshalJSON

func (l *OneOrList) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
cli
clouds
aws
do
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.

Jump to

Keyboard shortcuts

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