Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for GetBucketInfo (0.31 sec)

  1. cmd/admin-bucket-handlers.go

    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SetBucketQuotaAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := pathClean(vars["bucket"])
    
    	if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	data, err := io.ReadAll(r.Body)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	getBucketInfo := objectAPI.GetBucketInfo
    
    	if _, err := getBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Generate response.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. 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)
  4. cmd/batch-rotate.go

    	if r == nil {
    		return nil
    	}
    
    	if r.APIVersion != batchKeyRotateAPIVersion {
    		return errInvalidArgument
    	}
    
    	if r.Bucket == "" {
    		return errInvalidArgument
    	}
    
    	if _, err := o.GetBucketInfo(ctx, r.Bucket, BucketOptions{}); err != nil {
    		if isErrBucketNotFound(err) {
    			return batchKeyRotationJobError{
    				Code:           "NoSuchSourceBucket",
    				Description:    "The specified source bucket does not exist",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    		Bucket:   bucket,
    		Object:   object,
    		UploadID: uploadID,
    	}
    }
    
    // GetBucketInfo - returns bucket info from one of the erasure coded serverPools.
    func (z *erasureServerPools) GetBucketInfo(ctx context.Context, bucket string, opts BucketOptions) (bucketInfo BucketInfo, err error) {
    	bucketInfo, err = z.s3Peer.GetBucketInfo(ctx, bucket, opts)
    	if err != nil {
    		return bucketInfo, toObjectErr(err, bucket)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. cmd/batch-expire.go

    	if r.Bucket == "" {
    		return batchExpireJobError{
    			Code:           "InvalidArgument",
    			Description:    "Bucket argument missing",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	if _, err := o.GetBucketInfo(ctx, r.Bucket, BucketOptions{}); err != nil {
    		if isErrBucketNotFound(err) {
    			return batchExpireJobError{
    				Code:           "NoSuchSourceBucket",
    				Description:    "The specified source bucket does not exist",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. cmd/batch-handlers.go

    	}
    
    	var isRemoteToLocal bool
    	localBkt := r.Source.Bucket
    	if r.Source.Endpoint != "" {
    		localBkt = r.Target.Bucket
    		isRemoteToLocal = true
    	}
    	info, err := o.GetBucketInfo(ctx, localBkt, BucketOptions{})
    	if err != nil {
    		if isErrBucketNotFound(err) {
    			return batchReplicationJobError{
    				Code:           "NoSuchSourceBucket",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    func isRemoteCallRequired(ctx context.Context, bucket string, objAPI ObjectLayer) bool {
    	if globalDNSConfig == nil {
    		return false
    	}
    	if globalBucketFederation {
    		_, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{})
    		return err == toObjectErr(errVolumeNotFound, bucket)
    	}
    	return false
    }
    
    // CopyObjectHandler - Copy Object
    // ----------
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    	}
    	if r.Days == 0 && r.Type != SelectRestoreRequest {
    		return fmt.Errorf("restoration days should be at least 1")
    	}
    	// Check if bucket exists.
    	if !r.OutputLocation.IsEmpty() {
    		if _, err := objAPI.GetBucketInfo(ctx, r.OutputLocation.S3.BucketName, BucketOptions{}); err != nil {
    			return err
    		}
    		if r.OutputLocation.S3.Prefix == "" {
    			return fmt.Errorf("Prefix is a required parameter in OutputLocation")
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  10. cmd/object-handlers_test.go

    	h.Write(bytesData[0].byteData)
    	bytesData[0].md5sum = hex.EncodeToString(h.Sum(nil))
    
    	buffers := []*bytes.Buffer{
    		new(bytes.Buffer),
    		new(bytes.Buffer),
    	}
    	bucketInfo, err := obj.GetBucketInfo(context.Background(), bucketName, BucketOptions{})
    	if err != nil {
    		t.Fatalf("Test -1: %s: Failed to get bucket info: <ERROR> %s", instanceType, err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top