Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for listBuckets (0.09 sec)

  1. 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) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. 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()),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    	ctx := newContext(r, w, "ListBuckets")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	listBuckets := objectAPI.ListBuckets
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  4. cmd/server-main.go

    		})
    
    		var buckets []string
    		// List buckets to initialize bucket metadata sub-sys.
    		bootstrapTrace("listBuckets", func() {
    			for {
    				bucketsList, err := newObject.ListBuckets(GlobalContext, BucketOptions{NoMetadata: true})
    				if err != nil {
    					if configRetriableErrors(err) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
  5. cmd/admin-handlers-users_test.go

    	}
    
    	svcClient := s.getUserClient(c, cr.AccessKey, cr.SecretKey, "")
    
    	// Check that the service account can access the public bucket.
    	buckets, err := svcClient.ListBuckets(ctx)
    	if err != nil {
    		c.Fatalf("err fetching buckets %s", err)
    	}
    	if len(buckets) != 1 || buckets[0].Name != "public" {
    		c.Fatalf("service account should only have access to public bucket")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  6. cmd/background-newdisks-heal-ops.go

    		tracker = initHealingTracker(disk, mustGetUUID())
    	}
    
    	healingLogEvent(ctx, "Healing drive '%s' - 'mc admin heal alias/ --verbose' to check the current status.", endpoint)
    
    	buckets, _ := z.ListBuckets(ctx, BucketOptions{})
    	// Buckets data are dispersed in multiple pools/sets, make
    	// sure to heal all bucket metadata configuration.
    	buckets = append(buckets, BucketInfo{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	var results []dataUsageCache
    	var firstErr error
    
    	allBuckets, err := z.ListBuckets(ctx, BucketOptions{})
    	if err != nil {
    		return err
    	}
    
    	if len(allBuckets) == 0 {
    		updates <- DataUsageInfo{} // no buckets found update data usage to reflect latest state
    		return nil
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    		return errHealStopSignalled
    	}
    
    	// 1. If a bucket was specified, heal only the bucket.
    	if h.bucket != "" {
    		return h.healBucket(objAPI, h.bucket, false)
    	}
    
    	buckets, err := objAPI.ListBuckets(h.ctx, BucketOptions{})
    	if err != nil {
    		return errFnHealFromAPIErr(h.ctx, err)
    	}
    
    	// Heal latest buckets first.
    	sort.Slice(buckets, func(i, j int) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  9. cmd/admin-bucket-handlers.go

    			writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    		buckets = append(buckets, BucketInfo{Name: bucket})
    	} else {
    		buckets, err = objectAPI.ListBuckets(ctx, BucketOptions{})
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    	}
    
    	// Initialize a zip writer which will provide a zipped content
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    		}
    		globalNotificationSys.ReloadPoolMeta(ctx)
    	}
    	return nil
    }
    
    func (z *erasureServerPools) getBucketsToDecommission(ctx context.Context) ([]decomBucketInfo, error) {
    	buckets, err := z.ListBuckets(ctx, BucketOptions{})
    	if err != nil {
    		return nil, err
    	}
    
    	decomBuckets := make([]decomBucketInfo, len(buckets))
    	for i := range buckets {
    		decomBuckets[i] = decomBucketInfo{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top