Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetBucketUsageInfo (0.17 sec)

  1. cmd/bucket-quota.go

    			}
    			ctx, done := context.WithTimeout(ctx, 2*time.Second)
    			defer done()
    
    			return loadDataUsageFromBackend(ctx, objAPI)
    		},
    	)
    }
    
    // GetBucketUsageInfo return bucket usage info for a given bucket
    func (sys *BucketQuotaSys) GetBucketUsageInfo(ctx context.Context, bucket string) BucketUsageInfo {
    	sys.Init(newObjectLayerFn())
    
    	dui, err := bucketStorageCache.GetWithCtx(ctx)
    	timedout := OperationTimedOut{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/veeam-sos-api.go

    	case capacityXMLObject:
    		objAPI := newObjectLayerFn()
    		if objAPI == nil {
    			return nil, errServerNotInitialized
    		}
    
    		q, _ := globalBucketQuotaSys.Get(ctx, bucket)
    		binfo := globalBucketQuotaSys.GetBucketUsageInfo(ctx, bucket)
    
    		ci := capacityInfo{
    			Used: int64(binfo.Size),
    		}
    
    		var quotaSize int64
    		if q != nil && q.Type == madmin.HardQuota {
    			if q.Size > 0 {
    				quotaSize = int64(q.Size)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    		Policy:      buf,
    	}
    
    	for _, bucket := range buckets {
    		rd, wr := isAllowedAccess(bucket.Name)
    		if rd || wr {
    			// Fetch the data usage of the current bucket
    			bui := globalBucketQuotaSys.GetBucketUsageInfo(ctx, bucket.Name)
    			size := bui.Size
    			objectsCount := bui.ObjectsCount
    			objectsHist := bui.ObjectSizesHistogram
    			versionsHist := bui.ObjectVersionsHistogram
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top