config.go 877 B

123456789101112131415161718192021222324
  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. // The cname endpoint
  9. // These information are required to run sample/cname_sample
  10. endpoint4Cname string = "<endpoint>"
  11. accessID4Cname string = "<AccessKeyId>"
  12. accessKey4Cname string = "<AccessKeySecret>"
  13. bucketName4Cname string = "<my-cname-bucket>"
  14. // The object name in the sample code
  15. objectKey string = "my-object"
  16. // The local files to run sample code.
  17. localFile string = "src/sample/BingWallpaper-2015-11-07.jpg"
  18. htmlLocalFile string = "src/sample/The Go Programming Language.html"
  19. newPicName string = "src/sample/NewBingWallpaper-2015-11-07.jpg"
  20. )