Documentation
¶
Index ¶
- func Compare(actual []byte, goldenFile string) error
- func Diff(actualRaw, goldenRaw string) error
- func Ensure(cond bool, msg string)
- func GetCurrentUser() string
- func GetFirstEnv(keys ...string) string
- 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 IsValidTime(t time.Time) bool
- func Min(a, b int) int
- func RandomID() string
- func RandomIndex(n int) int
- func ShellQuote(args ...string) string
- func SleepWithContext(ctx context.Context, d time.Duration) error
- func SplitByComma(s string) []string
- func SubscriptionTierToString(tier defangv1.SubscriptionTier) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUser ¶
func GetCurrentUser() string
func GetFirstEnv ¶
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 IsValidTime ¶
func RandomIndex ¶
func ShellQuote ¶
ShellQuote returns a shell-quoted string of the given arguments. When needed, arguments are quoted with double quotes, so that spaces and env vars are preserved.
func SplitByComma ¶
func SubscriptionTierToString ¶
func SubscriptionTierToString(tier defangv1.SubscriptionTier) string
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
tools
Package tools: consolidated interfaces for mocking CLI/tool dependencies
|
Package tools: consolidated interfaces for mocking CLI/tool dependencies |
|
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.