Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for deletedObjects (0.14 sec)

  1. cmd/bucket-handlers_test.go

    	encodedSuccessResponse0 := encodeResponse(successResponse0)
    
    	successRequest1 := encodeResponse(requestList[1])
    
    	deletedObjects = make([]DeletedObject, len(requestList[1].Objects))
    	for i := range requestList[1].Objects {
    		var vid string
    		if isDirObject(requestList[0].Objects[i].ObjectName) {
    			vid = ""
    		}
    		deletedObjects[i] = DeletedObject{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  2. cmd/api-response.go

    	}
    	return listMultipartUploadsResponse
    }
    
    // generate multi objects delete response.
    func generateMultiDeleteResponse(quiet bool, deletedObjects []DeletedObject, errs []DeleteError) DeleteObjectsResponse {
    	deleteResp := DeleteObjectsResponse{}
    	if !quiet {
    		deleteResp.DeletedObjects = deletedObjects
    	}
    	deleteResp.Errors = errs
    	return deleteResp
    }
    
    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

    				deleteResult.delInfo.VersionID = ""
    			}
    			deletedObjects = append(deletedObjects, deleteResult.delInfo)
    		}
    	}
    
    	response := generateMultiDeleteResponse(deleteObjectsReq.Quiet, deletedObjects, deleteErrors)
    	encodedSuccessResponse := encodeResponse(response)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    	for _, dobj := range deletedObjects {
    		if dobj.ObjectName == "" {
    			continue
    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/erasure-server-pool.go

    					return
    				}
    				orgIndexes := origIndexMap[idx]
    				deletedObjects, errs := pool.DeleteObjects(ctx, bucket, objs, opts)
    				mu.Lock()
    				for i, derr := range errs {
    					if derr != nil {
    						derrs[orgIndexes[i]] = derr
    					}
    					deletedObjects[i].ObjectName = decodeDirObject(deletedObjects[i].ObjectName)
    					dobjects[orgIndexes[i]] = deletedObjects[i]
    				}
    				mu.Unlock()
    			}(idx, pool)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	delRespBytes, err = io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	err = xml.Unmarshal(delRespBytes, &deleteResp)
    	c.Assert(err, nil)
    	c.Assert(len(deleteResp.DeletedObjects), len(delObjReq.Objects))
    	for i := 0; i < 10; i++ {
    		c.Assert(deleteResp.DeletedObjects[i], DeletedObject{
    			ObjectName: delObjReq.Objects[i].ObjectName,
    			VersionID:  delObjReq.Objects[i].VersionID,
    		})
    	}
    	c.Assert(len(deleteResp.Errors), 0)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  6. cmd/api-datatypes.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"encoding/xml"
    	"time"
    )
    
    // DeletedObject objects deleted
    type DeletedObject struct {
    	DeleteMarker          bool   `xml:"DeleteMarker,omitempty"`
    	DeleteMarkerVersionID string `xml:"DeleteMarkerVersionId,omitempty"`
    	ObjectName            string `xml:"Key,omitempty"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 14 07:26:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. cmd/erasure-sets.go

    }
    
    // DeleteObjects - bulk delete of objects
    // Bulk delete is only possible within one set. For that purpose
    // objects are group by set first, and then bulk delete is invoked
    // for each set, the error response of each delete will be returned
    func (s *erasureSets) DeleteObjects(ctx context.Context, bucket string, objects []ObjectToDelete, opts ObjectOptions) ([]DeletedObject, []error) {
    	type delObj struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  8. cmd/object-api-interface.go

    	DeleteObject(ctx context.Context, bucket, object string, opts ObjectOptions) (ObjectInfo, error)
    	DeleteObjects(ctx context.Context, bucket string, objects []ObjectToDelete, opts ObjectOptions) ([]DeletedObject, []error)
    	TransitionObject(ctx context.Context, bucket, object string, opts ObjectOptions) error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    	if !opts.NoAuditLog {
    		for _, obj := range objects {
    			auditObjectErasureSet(ctx, "DeleteObjects", obj.ObjectV.ObjectName, &er)
    		}
    	}
    
    	errs := make([]error, len(objects))
    	dobjects := make([]DeletedObject, len(objects))
    	writeQuorums := make([]int, len(objects))
    
    	storageDisks := er.getDisks()
    
    	for i := range objects {
    		// Assume (N/2 + 1) quorums for all objects
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  10. cmd/tier-sweeper.go

    //	    logger.LogIf(ctx, err)
    //	}
    type objSweeper struct {
    	Object              string
    	Bucket              string
    	VersionID           string // version ID set by application, applies only to DeleteObject and DeleteObjects APIs
    	Versioned           bool
    	Suspended           bool
    	TransitionStatus    string
    	TransitionTier      string
    	TransitionVersionID string
    	RemoteObject        string
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 17 05:09:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top