|
|
@ -1,15 +1,16 @@ |
|
|
|
package main |
|
|
|
|
|
|
|
import ( |
|
|
|
"crypto/md5" |
|
|
|
"encoding/base64" |
|
|
|
"fmt" |
|
|
|
"github.com/aws/aws-sdk-go/aws" |
|
|
|
"github.com/aws/aws-sdk-go/aws/session" |
|
|
|
"github.com/aws/aws-sdk-go/service/s3" |
|
|
|
"encoding/base64" |
|
|
|
"fmt" |
|
|
|
"crypto/md5" |
|
|
|
"github.com/seaweedfs/seaweedfs/weed/util" |
|
|
|
"net/http" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
"net/http" |
|
|
|
) |
|
|
|
|
|
|
|
// Downloads an item from an S3 Bucket in the region configured in the shared config
|
|
|
@ -63,6 +64,7 @@ func main() { |
|
|
|
fmt.Printf("error put request: %v\n", err) |
|
|
|
return |
|
|
|
} |
|
|
|
defer util.CloseResponse(resp) |
|
|
|
fmt.Printf("response: %+v\n", resp) |
|
|
|
} |
|
|
|
|
|
|
|