MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / DefaultCLIConfig

Function DefaultCLIConfig

internal/config/defaults.go:12–27  ·  view source on GitHub ↗

DefaultCLIConfig returns a CLIConfig with all default values

()

Source from the content-addressed store, hash-verified

10
11// DefaultCLIConfig returns a CLIConfig with all default values
12func DefaultCLIConfig() *CLIConfig {
13 return &CLIConfig{
14 AWS: AWSConfig{
15 Region: shared.DefaultAWSRegion,
16 Profile: "", // Use default AWS credential chain
17 },
18 Deployment: DeploymentConfig{
19 StackName: generateDefaultStackName(),
20 Mode: ModeNormal,
21 },
22 Proxy: ProxyConfig{
23 Port: shared.DefaultSOCKS5Port,
24 STUNServer: shared.DefaultSTUNServer,
25 },
26 }
27}
28
29// generateDefaultStackName creates a unique stack name with a random suffix
30func generateDefaultStackName() string {

Callers 2

TestDefaultCLIConfigFunction · 0.85
LoadCLIConfigFunction · 0.85

Calls 1

generateDefaultStackNameFunction · 0.85

Tested by 1

TestDefaultCLIConfigFunction · 0.68