config.go 777 B

1234567891011121314151617181920212223242526
  1. package sample
  2. import "os"
  3. var (
  4. // Sample code's env configuration. You need to specify them with the actual configuration if you want to run sample code
  5. endpoint = os.Getenv("OSS_TEST_ENDPOINT")
  6. accessID = os.Getenv("OSS_TEST_ACCESS_KEY_ID")
  7. accessKey = os.Getenv("OSS_TEST_ACCESS_KEY_SECRET")
  8. bucketName = os.Getenv("OSS_TEST_BUCKET")
  9. kmsID = os.Getenv("OSS_TEST_KMS_ID")
  10. // The cname endpoint
  11. endpoint4Cname = os.Getenv("OSS_TEST_CNAME_ENDPOINT")
  12. )
  13. const (
  14. // The object name in the sample code
  15. objectKey string = "my-object"
  16. appendObjectKey string = "my-object-append"
  17. // The local files to run sample code.
  18. localFile string = "sample/BingWallpaper-2015-11-07.jpg"
  19. htmlLocalFile string = "sample/The Go Programming Language.html"
  20. )