pkg

package
v0.0.0-...-b7a81a2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(actual []byte, goldenFile string) error

func Diff

func Diff(actualRaw, goldenRaw string) error

func Ensure

func Ensure(cond bool, msg string)

func GetCurrentUser

func GetCurrentUser() string

func GetFirstEnv

func GetFirstEnv(keys ...string) string

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 IsValidTime

func IsValidTime(t time.Time) bool

func Min

func Min(a, b int) int

func RandomID

func RandomID() string

func RandomIndex

func RandomIndex(n int) int

func ShellQuote

func ShellQuote(args ...string) string

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 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

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
cli
aws
do
gcp
mcp
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