Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/xl-storage-format-utils.go

    		return FileInfoVersions{}, e
    	} else if buf != nil {
    		versions, err = buf.ListVersions(volume, path, allParts)
    	} else {
    		var xlMeta xlMetaV2
    		if err := xlMeta.LoadOrConvert(xlMetaBuf); err != nil {
    			return FileInfoVersions{}, err
    		}
    		versions, err = xlMeta.ListVersions(volume, path, allParts)
    	}
    	if err == nil && len(versions) == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. cmd/xl-storage-format_test.go

    						b.Fatal(err)
    					}
    				}
    			})
    			b.Run("ListVersions", func(b *testing.B) {
    				b.SetBytes(int64(size))
    				b.ResetTimer()
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    					// Load...
    					xl = xlMetaV2{}
    					err := xl.Load(enc)
    					if err != nil {
    						b.Fatal(err)
    					}
    					// List...
    					_, err = xl.ListVersions("volume", "path", true)
    					if err != nil {
    						b.Fatal(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. cmd/xl-storage-free-version_test.go

    	"errors"
    	"testing"
    	"time"
    
    	"github.com/google/uuid"
    	"github.com/minio/minio/internal/bucket/lifecycle"
    )
    
    func (x xlMetaV2) listFreeVersions(volume, path string) ([]FileInfo, error) {
    	fivs, err := x.ListVersions(volume, path, true)
    	if err != nil {
    		return nil, err
    	}
    	n := 0
    	for _, fiv := range fivs {
    		if fiv.TierFreeVersion() {
    			fivs[n] = fiv
    			n++
    		}
    	}
    	fivs = fivs[:n]
    	return fivs, nil
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    	}
    	fi.NumVersions = nonFreeVersions
    	return fi, err
    }
    
    // ListVersions lists current versions, and current deleted
    // versions returns error for unexpected entries.
    // showPendingDeletes is set to true if ListVersions needs to list objects marked deleted
    // but waiting to be replicated
    func (x xlMetaV2) ListVersions(volume, path string, allParts bool) ([]FileInfo, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top