add google cloud storage

This commit is contained in:
Chris Lu
2018-10-04 01:14:44 -07:00
parent e8ef501f02
commit 56c5c7b1b6
3 changed files with 144 additions and 1 deletions

View File

@@ -17,7 +17,6 @@ import (
)
type S3Sink struct {
err error
conn s3iface.S3API
region string
bucket string
@@ -84,6 +83,10 @@ func (s3sink *S3Sink) DeleteEntry(key string, isDirectory, deleteIncludeChunks b
func (s3sink *S3Sink) CreateEntry(key string, entry *filer_pb.Entry) error {
if entry.IsDirectory {
return nil
}
uploadId, err := s3sink.createMultipartUpload(key, entry)
if err != nil {
return err