github.com/aavshr/aws-sdk-go@v1.41.3/aws/defaults/shared_config.go (about) 1 package defaults 2 3 import ( 4 "github.com/aavshr/aws-sdk-go/internal/shareddefaults" 5 ) 6 7 // SharedCredentialsFilename returns the SDK's default file path 8 // for the shared credentials file. 9 // 10 // Builds the shared config file path based on the OS's platform. 11 // 12 // - Linux/Unix: $HOME/.aws/credentials 13 // - Windows: %USERPROFILE%\.aws\credentials 14 func SharedCredentialsFilename() string { 15 return shareddefaults.SharedCredentialsFilename() 16 } 17 18 // SharedConfigFilename returns the SDK's default file path for 19 // the shared config file. 20 // 21 // Builds the shared config file path based on the OS's platform. 22 // 23 // - Linux/Unix: $HOME/.aws/config 24 // - Windows: %USERPROFILE%\.aws\config 25 func SharedConfigFilename() string { 26 return shareddefaults.SharedConfigFilename() 27 }