Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for ListBuckets (0.26 sec)

  1. cmd/peer-s3-client.go

    	return madmin.HealResultItem{}, toObjectErr(errVolumeNotFound, bucket)
    }
    
    // ListBuckets lists buckets across all nodes and returns a consistent view:
    //   - Return an error when a pool cannot return N/2+1 valid bucket information
    //   - For each pool, check if the bucket exists in N/2+1 nodes before including it in the final result
    func (sys *S3PeerSys) ListBuckets(ctx context.Context, opts BucketOptions) ([]BucketInfo, error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  2. cmd/object-api-interface.go

    }
    
    // BucketOptions provides options for ListBuckets and GetBucketInfo call.
    type BucketOptions struct {
    	Deleted bool // true only when site replication is enabled
    	Cached  bool // true only when we are requesting a cached response instead of hitting the disk for example ListBuckets() call.
    }
    
    // SetReplicaStatus sets replica status and timestamp for delete operations in ObjectOptions
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  3. cmd/object_api_suite_test.go

    func TestListBuckets(t *testing.T) {
    	ExecObjectLayerTest(t, testListBuckets)
    }
    
    // Tests validate ListBuckets.
    func testListBuckets(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	// test empty list.
    	buckets, err := obj.ListBuckets(context.Background(), BucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	if len(buckets) != 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  4. cmd/bucket-metadata-sys.go

    // Only a shallow copy is returned, so referenced data should not be modified,
    // but can be replaced atomically.
    //
    // This function should only be used with
    // - GetBucketInfo
    // - ListBuckets
    // For all other bucket specific metadata, use the relevant
    // calls implemented specifically for each of those features.
    func (sys *BucketMetadataSys) Get(bucket string) (BucketMetadata, error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  5. cmd/api-response.go

    func generateListBucketsResponse(buckets []BucketInfo) ListBucketsResponse {
    	listbuckets := make([]Bucket, 0, len(buckets))
    	data := ListBucketsResponse{}
    	owner := Owner{
    		ID:          globalMinioDefaultOwnerID,
    		DisplayName: "minio",
    	}
    
    	for _, bucket := range buckets {
    		listbuckets = append(listbuckets, Bucket{
    			Name:         bucket.Name,
    			CreationDate: amztime.ISO8601Format(bucket.Created.UTC()),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  6. cmd/peer-s3-server.go

    	// lists all unique buckets across drives.
    	if err := listAllBuckets(ctx, localDrives, healBuckets, quorum); err != nil {
    		return nil, err
    	}
    
    	// include deleted buckets in listBuckets output
    	deletedBuckets := map[string]VolInfo{}
    
    	if opts.Deleted {
    		// lists all deleted buckets across drives.
    		if err := listDeletedBuckets(ctx, localDrives, deletedBuckets, quorum); err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. cmd/api-router.go

    		HandlerFunc(s3APIMiddleware(api.ListenNotificationHandler, noThrottleS3HFlag)).
    		Queries("events", "{events:.*}")
    
    	// ListBuckets
    	apiRouter.Methods(http.MethodGet).Path(SlashSeparator).
    		HandlerFunc(s3APIMiddleware(api.ListBucketsHandler))
    
    	// S3 browser with signature v4 adds '//' for ListBuckets request, so rather
    	// than failing with UnknownAPIRequest we simply handle it for now.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  8. docs/debugging/s3-check-md5/main.go

    		log.Fatalln(err)
    	}
    
    	if debug {
    		s3Client.TraceOn(os.Stderr)
    	}
    
    	var buckets []string
    	if bucket != "" {
    		buckets = append(buckets, bucket)
    	} else {
    		bucketsInfo, err := s3Client.ListBuckets(context.Background())
    		if err != nil {
    			log.Fatalln(err)
    		}
    		for _, b := range bucketsInfo {
    			buckets = append(buckets, b.Name)
    		}
    	}
    
    	for _, bucket := range buckets {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. cmd/admin-handlers-pools.go

    		return
    	}
    
    	if pools.IsRebalanceStarted() {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminRebalanceAlreadyStarted), r.URL)
    		return
    	}
    
    	bucketInfos, err := objectAPI.ListBuckets(ctx, BucketOptions{})
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	buckets := make([]string, 0, len(bucketInfos))
    	for _, bInfo := range bucketInfos {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. cmd/sftp-server-driver.go

    	if err != nil {
    		return nil, err
    	}
    
    	switch r.Method {
    	case "List":
    		var files []os.FileInfo
    
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			buckets, err := clnt.ListBuckets(r.Context())
    			if err != nil {
    				return nil, err
    			}
    
    			for _, bucket := range buckets {
    				files = append(files, &minioFileInfo{
    					p:     bucket.Name,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top