Skip to content

Commit

Permalink
review: link FPutEncryptedObject from README
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Auernhammer committed Sep 27, 2017
1 parent bd17b4b commit ea523f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ The full API Reference is available here.
### Full Examples : Encrypted Object Operations
* [put-encrypted-object.go](https://github.com/minio/minio-go/blob/master/examples/s3/put-encrypted-object.go)
* [get-encrypted-object.go](https://github.com/minio/minio-go/blob/master/examples/s3/get-encrypted-object.go)
* [fput-encrypted-object.go](https://github.com/minio/minio-go/blob/master/examples/s3/fputencrypted-object.go)

### Full Examples : Presigned Operations
* [presignedgetobject.go](https://github.com/minio/minio-go/blob/master/examples/s3/presignedgetobject.go)
Expand Down
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ if err != nil {
}
```
<a name="StatObject"></a>
### StatObject(bucketName, objectName string, opts GetObjectOptions) (ObjectInfo, error)
### StatObject(bucketName, objectName string, opts StatObjectOptions) (ObjectInfo, error)

Gets metadata of an object.

Expand All @@ -882,7 +882,7 @@ __Parameters__
|:---|:---| :---|
|`bucketName` | _string_ |Name of the bucket |
|`objectName` | _string_ |Name of the object |
|`opts` | _GetObjectOptions_ | Options for GET requests specifying additional options like encryption, If-Match |
|`opts` | _StatObjectOptions_ | Options for GET info/stat requests specifying additional options like encryption, If-Match |


__Return Value__
Expand Down
2 changes: 1 addition & 1 deletion examples/s3/getobject-context.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
defer cancel()

opts := minio.GetObjectOptions{}
opts.SetModified(time.Now().Sub(10 * time.Minute)) // get object if was modified within the last 10 minutes
opts.SetModified(time.Now().Round(10 * time.Minute)) // get object if was modified within the last 10 minutes
reader, err := s3Client.GetObjectWithContext(ctx, "my-bucketname", "my-objectname", opts)
if err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit ea523f8

Please sign in to comment.