@@ -32,11 +32,10 @@ import (
32
32
// This call requires explicit authentication, no anonymous requests are
33
33
// allowed for listing buckets.
34
34
//
35
- // api := client.New(....)
36
- // for message := range api.ListBuckets(context.Background()) {
37
- // fmt.Println(message)
38
- // }
39
- //
35
+ // api := client.New(....)
36
+ // for message := range api.ListBuckets(context.Background()) {
37
+ // fmt.Println(message)
38
+ // }
40
39
func (c * Client ) ListBuckets (ctx context.Context ) ([]BucketInfo , error ) {
41
40
// Execute GET on service.
42
41
resp , err := c .executeMethod (ctx , http .MethodGet , requestMetadata {contentSHA256Hex : emptySHA256Hex })
@@ -659,11 +658,10 @@ func (o *ListObjectsOptions) Set(key, value string) {
659
658
660
659
// ListObjects returns objects list after evaluating the passed options.
661
660
//
662
- // api := client.New(....)
663
- // for object := range api.ListObjects(ctx, "mytestbucket", minio.ListObjectsOptions{Prefix: "starthere", Recursive:true}) {
664
- // fmt.Println(object)
665
- // }
666
- //
661
+ // api := client.New(....)
662
+ // for object := range api.ListObjects(ctx, "mytestbucket", minio.ListObjectsOptions{Prefix: "starthere", Recursive:true}) {
663
+ // fmt.Println(object)
664
+ // }
667
665
func (c * Client ) ListObjects (ctx context.Context , bucketName string , opts ListObjectsOptions ) <- chan ObjectInfo {
668
666
if opts .WithVersions {
669
667
return c .listObjectVersions (ctx , bucketName , opts )
@@ -694,12 +692,12 @@ func (c *Client) ListObjects(ctx context.Context, bucketName string, opts ListOb
694
692
// If you enable recursive as 'true' this function will return back all
695
693
// the multipart objects in a given bucket name.
696
694
//
697
- // api := client.New(....)
698
- // // Recurively list all objects in 'mytestbucket'
699
- // recursive := true
700
- // for message := range api.ListIncompleteUploads(context.Background(), "mytestbucket", "starthere", recursive) {
701
- // fmt.Println(message)
702
- // }
695
+ // api := client.New(....)
696
+ // // Recurively list all objects in 'mytestbucket'
697
+ // recursive := true
698
+ // for message := range api.ListIncompleteUploads(context.Background(), "mytestbucket", "starthere", recursive) {
699
+ // fmt.Println(message)
700
+ // }
703
701
func (c * Client ) ListIncompleteUploads (ctx context.Context , bucketName , objectPrefix string , recursive bool ) <- chan ObjectMultipartInfo {
704
702
return c .listIncompleteUploads (ctx , bucketName , objectPrefix , recursive )
705
703
}
@@ -916,7 +914,7 @@ func (c *Client) findUploadIDs(ctx context.Context, bucketName, objectName strin
916
914
}
917
915
918
916
// listObjectPartsQuery (List Parts query)
919
- // - lists some or all (up to 1000) parts that have been uploaded
917
+ // - lists some or all (up to 1000) parts that have been uploaded
920
918
// for a specific multipart upload
921
919
//
922
920
// You can use the request parameters as selection criteria to return
0 commit comments