Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultEndpoint is the default cloudmock gateway endpoint. DefaultEndpoint = "http://localhost:4566" // DefaultAdminPort is the default admin/health port. DefaultAdminPort = 4599 // DefaultRegion is the default AWS region used with cloudmock. DefaultRegion = "us-east-1" // DefaultAccessKey is the default AWS access key for cloudmock. DefaultAccessKey = "test" // DefaultSecretKey is the default AWS secret key for cloudmock. DefaultSecretKey = "test" // DefaultAccountID is the fake AWS account ID used with cloudmock. DefaultAccountID = "000000000000" )
Variables ¶
This section is empty.
Functions ¶
func AWSEnvVars ¶
AWSEnvVars returns a slice of environment variable strings that configure AWS CLI tools to point at a cloudmock endpoint.
func DetectEndpoint ¶
func DetectEndpoint() string
DetectEndpoint returns the cloudmock endpoint URL. It checks CLOUDMOCK_ENDPOINT env var first, then falls back to DefaultEndpoint.
func ExecTool ¶
ExecTool replaces the current process with the given tool, passing along the provided args and injecting cloudmock-aware environment variables. On Unix systems this uses syscall.Exec for a true exec; on error it falls back to os/exec.
func ExecToolPassthrough ¶
ExecToolPassthrough execs the tool with the current environment unchanged. Used for --real-aws mode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.