Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 310 for versionId (0.09 sec)

  1. cmd/tier-sweeper.go

    // overwritten or deleted depending on bucket versioning status.
    func (os *objSweeper) GetOpts() ObjectOptions {
    	opts := ObjectOptions{
    		VersionID:        os.VersionID,
    		Versioned:        os.Versioned,
    		VersionSuspended: os.Suspended,
    	}
    	if os.Suspended && os.VersionID == "" {
    		opts.VersionID = nullVersionID
    	}
    	return opts
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 17 05:09:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils_test.go

    			t.Fatalf("getFileInfoVersions: versions don't match at %d, version id expected %s but got %s", i, fi.VersionID, versions[i].VersionID)
    		}
    		if fi.NumVersions != len(fivs.Versions) {
    			t.Fatalf("getFileInfoVersions: version with %s version id expected to have %d as NumVersions but got %d", fi.VersionID, len(fivs.Versions), fi.NumVersions)
    		}
    	}
    
    	for i, free := range fivs.FreeVersions {
    		if free.VersionID != freeVersionIDs[i] {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    		tgtObject = pathJoin(r.Target.Prefix, srcObjInfo.Name)
    	}
    
    	versionID := srcObjInfo.VersionID
    	if r.Target.Type == BatchJobReplicateResourceS3 || r.Source.Type == BatchJobReplicateResourceS3 {
    		versionID = ""
    	}
    	if srcObjInfo.DeleteMarker {
    		_, err := api.DeleteObject(ctx, tgtBucket, tgtObject, ObjectOptions{
    			VersionID: versionID,
    			// Since we are preserving a delete marker, we have to make sure this is always true.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. cmd/api-datatypes.go

    }
    
    // ObjectV object version key/versionId
    type ObjectV struct {
    	ObjectName string `xml:"Key"`
    	VersionID  string `xml:"VersionId"`
    }
    
    // ObjectToDelete carries key name for the object to delete.
    type ObjectToDelete struct {
    	ObjectV
    	// Replication status of DeleteMarker
    	DeleteMarkerReplicationStatus string `xml:"DeleteMarkerReplicationStatus"`
    	// Status of versioned delete (of object or DeleteMarker)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 14 07:26:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. cmd/object-api-options.go

    		return opts, InvalidArgument{
    			Bucket: bucket,
    			Object: object,
    			Err:    err,
    		}
    	}
    
    	opts.VersionID = vid
    	opts.Versioned = versioned
    	opts.VersionSuspended = versionSuspended
    
    	// For directory objects skip creating new versions.
    	if isDirObject(object) && vid == "" {
    		opts.VersionID = nullVersionID
    	}
    
    	return opts, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    		if versionID == "" {
    			versionID = mustGetUUID()
    			fi.IsLatest = true // we are creating a new version so this is latest.
    		}
    	}
    
    	modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true.
    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    	fi.ModTime = modTime     // set modTime for the new versionID
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  7. cmd/object-handlers-common.go

    	if objInfo.ETag != "" && !delete {
    		w.Header()[xhttp.ETag] = []string{`"` + objInfo.ETag + `"`}
    	}
    
    	// Set the relevant version ID as part of the response header.
    	if objInfo.VersionID != "" && objInfo.VersionID != nullVersionID {
    		w.Header()[xhttp.AmzVersionID] = []string{objInfo.VersionID}
    		// If version is a deleted marker, set this header as well
    		if objInfo.DeleteMarker && delete { // only returned during delete object
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. cmd/erasure-metadata.go

    		correctIndexes)
    }
    
    // ToObjectInfo - Converts metadata to object info.
    func (fi FileInfo) ToObjectInfo(bucket, object string, versioned bool) ObjectInfo {
    	object = decodeDirObject(object)
    	versionID := fi.VersionID
    	if versioned && versionID == "" {
    		versionID = nullVersionID
    	}
    
    	objInfo := ObjectInfo{
    		IsDir:            HasSuffix(object, SlashSeparator),
    		Bucket:           bucket,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. cmd/bucket-replication_test.go

    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_test.go

    		if len(xl.versions) != 855 {
    			t.Errorf("want %d versions, got %d", 855, len(xl.versions))
    		}
    		xl.sortByModTime()
    		if !sort.SliceIsSorted(xl.versions, func(i, j int) bool {
    			return xl.versions[i].header.ModTime > xl.versions[j].header.ModTime
    		}) {
    			t.Errorf("Contents not sorted")
    		}
    		for i := range xl.versions {
    			hdr := xl.versions[i].header
    			ver, err := xl.getIdx(i)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top