diff --git a/API.md b/API.md index 76e8acd086..0554e90b30 100644 --- a/API.md +++ b/API.md @@ -53,8 +53,8 @@ func main() { |[`BucketExists`](#BucketExists) |[`CopyObject`](#CopyObject) |[`PresignedPostPolicy`](#PresignedPostPolicy) | | | [`RemoveBucket`](#RemoveBucket) |[`StatObject`](#StatObject) | | | |[`ListObjects`](#ListObjects) |[`RemoveObject`](#RemoveObject) | | | -|[`ListIncompleteUploads`](#ListIncompleteUploads) | [`RemoveIncompleteUpload`](#RemoveIncompleteUpload) | | | -| |[`FPutObject`](#FPutObject) | | | +|[`ListObjectsV2`](#ListObjectsV2) | [`RemoveIncompleteUpload`](#RemoveIncompleteUpload) | | | +|[`ListIncompleteUploads`](#ListIncompleteUploads) |[`FPutObject`](#FPutObject) | | | | | [`FGetObject`](#FGetObject) | | | ## 1. Constructor @@ -257,6 +257,67 @@ for object := range objectCh { } ``` + +#### ListObjectsV2(bucketName string, prefix string, recursive bool, doneCh chan struct{}) <-chan ObjectInfo +Lists objects in a bucket using the recommanded listing API v2 + +__Parameters__ + +|Param |Type |Description | +|:---|:---| :---| +|`bucketName` | _string_ |name of the bucket. | +| `objectPrefix` |_string_ | the prefix of the objects that should be listed. | +| `recursive` | _bool_ |`true` indicates recursive style listing and `false` indicates directory style listing delimited by '/'. | +|`doneCh` | _chan struct{}_ | Set this value to 'true' to enable secure (HTTPS) access. | + +__Return Value__ + +
Param | +Type | +Description | +
---|---|---|
+ chan ObjectInfo + | +chan ObjectInfo | +
+
|
+