Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getObjectInfo (0.07 sec)

  1. cmd/erasure-object.go

    	} // End of read all parts loop.
    	// Return success.
    	return nil
    }
    
    // GetObjectInfo - reads object metadata and replies back ObjectInfo.
    func (er erasureObjects) GetObjectInfo(ctx context.Context, bucket, object string, opts ObjectOptions) (info ObjectInfo, err error) {
    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, "GetObjectInfo", object, &er)
    	}
    
    	if !opts.NoLock {
    		// Lock the object before reading.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    				for _, prefix := range li.Prefixes {
    					objInfo, _ := z.GetObjectInfo(ctx, bucket, pathJoin(prefix, "_SUCCESS"), ObjectOptions{NoLock: true})
    					if objInfo.IsLatest && objInfo.DeleteMarker {
    						continue
    					}
    					prefixes = append(prefixes, prefix)
    				}
    				if len(prefixes) > 0 {
    					objInfo, _ := z.GetObjectInfo(ctx, bucket, pathJoin(opts.Prefix, "_SUCCESS"), ObjectOptions{NoLock: true})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  3. cmd/erasure-healing_test.go

    			t.Errorf("Expect %v but received %v", ObjectNotFound{Bucket: bucket, Object: object}, err)
    		}
    	}
    
    	// since majority of xl.meta's are not available, object should be successfully deleted.
    	_, err = objLayer.GetObjectInfo(ctx, bucket, object, ObjectOptions{})
    	if _, ok := err.(ObjectNotFound); !ok {
    		t.Errorf("Expect %v but received %v", ObjectNotFound{Bucket: bucket, Object: object}, err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  4. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedXML), r.URL)
    		return
    	}
    
    	objectsToDelete := map[ObjectToDelete]int{}
    	getObjectInfoFn := objectAPI.GetObjectInfo
    
    	var (
    		hasLockEnabled bool
    		dsc            ReplicateDecision
    		goi            ObjectInfo
    		gerr           error
    	)
    	replicateDeletes := hasReplicationRules(ctx, bucket, deleteObjectsReq.Objects)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top