OSDN Git Service

Create ossClient.go (#574)
[bytom/vapor.git] / vendor / github.com / aliyun / aliyun-oss-go-sdk / sample / config.go
1 package sample
2
3 import "os"
4
5 var (
6         // Sample code's env configuration. You need to specify them with the actual configuration if you want to run sample code
7         endpoint   = os.Getenv("OSS_TEST_ENDPOINT")
8         accessID   = os.Getenv("OSS_TEST_ACCESS_KEY_ID")
9         accessKey  = os.Getenv("OSS_TEST_ACCESS_KEY_SECRET")
10         bucketName = os.Getenv("OSS_TEST_BUCKET")
11         kmsID      = os.Getenv("OSS_TEST_KMS_ID")
12         accountID  = os.Getenv("OSS_TEST_ACCOUNT_ID")
13         stsARN     = os.Getenv("OSS_TEST_STS_ARN")
14
15         // Credential
16         credentialAccessID  = os.Getenv("OSS_CREDENTIAL_KEY_ID")
17         credentialAccessKey = os.Getenv("OSS_CREDENTIAL_KEY_SECRET")
18         credentialUID       = os.Getenv("OSS_CREDENTIAL_UID")
19
20         // The cname endpoint
21         endpoint4Cname = os.Getenv("OSS_TEST_CNAME_ENDPOINT")
22 )
23
24 const (
25
26         // The object name in the sample code
27         objectKey       string = "my-object"
28         appendObjectKey string = "my-object-append"
29
30         // The local files to run sample code.
31         localFile          string = "sample/BingWallpaper-2015-11-07.jpg"
32         localCsvFile       string = "sample/sample_data.csv"
33         localJSONFile      string = "sample/sample_json.json"
34         localJSONLinesFile string = "sample/sample_json_lines.json"
35         htmlLocalFile      string = "sample/The Go Programming Language.html"
36 )