shared_config.go 768 B

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