Этот коммит содержится в:
Christopher Speller
2017-08-17 17:19:06 -07:00
коммит произвёл GitHub
родитель 2c895ee66e
Коммит 96eab12027
400 изменённых файлов: 45331 добавлений и 11832 удалений

22
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)
```