diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-08-17 17:19:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 17:19:06 -0700 |
commit | 96eab1202717e073782ec399a4e0820cae15b1bb (patch) | |
tree | 011012982be971c7e9ef91466f026bc0956ac9a2 /vendor/github.com/minio/minio-go/docs/API.md | |
parent | 2c895ee66eed626721135acfcc48254c6e3f3b29 (diff) | |
download | chat-96eab1202717e073782ec399a4e0820cae15b1bb.tar.gz chat-96eab1202717e073782ec399a4e0820cae15b1bb.tar.bz2 chat-96eab1202717e073782ec399a4e0820cae15b1bb.zip |
Updating server dependancies. (#7246)
Diffstat (limited to 'vendor/github.com/minio/minio-go/docs/API.md')
-rw-r--r-- | vendor/github.com/minio/minio-go/docs/API.md | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/vendor/github.com/minio/minio-go/docs/API.md b/vendor/github.com/minio/minio-go/docs/API.md index e0d0a11e6..902a975d9 100644 --- a/vendor/github.com/minio/minio-go/docs/API.md +++ b/vendor/github.com/minio/minio-go/docs/API.md @@ -531,9 +531,13 @@ __Example__ src := minio.NewSourceInfo("my-sourcebucketname", "my-sourceobjectname", nil) // Destination object -dst := minio.NewDestinationInfo("my-bucketname", "my-objectname", nil, nil) +dst, err := minio.NewDestinationInfo("my-bucketname", "my-objectname", nil, nil) +if err != nil { + fmt.Println(err) + return +} -/ Copy object call +// Copy object call err = s3Client.CopyObject(dst, src) if err != nil { fmt.Println(err) @@ -562,9 +566,13 @@ src.SetUnmodifiedSinceCond(time.Date(2014, time.April, 23, 0, 0, 0, 0, time.UTC) src.SetRange(0, 1024*1024-1) // Destination object -dst := minio.NewDestinationInfo("my-bucketname", "my-objectname", nil, nil) +dst, err := minio.NewDestinationInfo("my-bucketname", "my-objectname", nil, nil) +if err != nil { + fmt.Println(err) + return +} -/ Copy object call +// Copy object call err = s3Client.CopyObject(dst, src) if err != nil { fmt.Println(err) @@ -648,7 +656,7 @@ src := NewSourceInfo("bucket", "object", decKey) ``` <a name="NewDestinationInfo"></a> -### NewDestinationInfo(bucket, object string, encryptSSEC *SSEInfo, userMeta map[string]string) DestinationInfo +### NewDestinationInfo(bucket, object string, encryptSSEC *SSEInfo, userMeta map[string]string) (DestinationInfo, error) Construct a `DestinationInfo` object that can be used as the destination object for server-side copying operations like `CopyObject` and `ComposeObject`. @@ -665,11 +673,11 @@ __Example__ ``` go // No encryption parameter. -src := NewDestinationInfo("bucket", "object", nil, nil) +dst, err := NewDestinationInfo("bucket", "object", nil, nil) // With encryption parameter. encKey := NewSSEKey([]byte{1,2,3}, "") -src := NewDecryptionInfo("bucket", "object", encKey, nil) +dst, err := NewDecryptionInfo("bucket", "object", encKey, nil) ``` |