config.go 908 B

12345678910111213141516171819202122232425
  1. package sample
  2. const (
  3. // Sample code's env configuration. You need to specify them with the actual configuration if you want to run sample code
  4. endpoint string = "<endpoint>"
  5. accessID string = "<AccessKeyId>"
  6. accessKey string = "<AccessKeySecret>"
  7. bucketName string = "<my-bucket>"
  8. kmsID string = "<KmsID>"
  9. // The cname endpoint
  10. // These information are required to run sample/cname_sample
  11. endpoint4Cname string = "<endpoint>"
  12. accessID4Cname string = "<AccessKeyId>"
  13. accessKey4Cname string = "<AccessKeySecret>"
  14. bucketName4Cname string = "<my-cname-bucket>"
  15. // The object name in the sample code
  16. objectKey string = "my-object"
  17. // The local files to run sample code.
  18. localFile string = "src/sample/BingWallpaper-2015-11-07.jpg"
  19. htmlLocalFile string = "src/sample/The Go Programming Language.html"
  20. newPicName string = "src/sample/NewBingWallpaper-2015-11-07.jpg"
  21. )