Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for sortie (0.14 sec)

  1. cmd/signature-v2_test.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"net/http"
    	"net/url"
    	"os"
    	"sort"
    	"testing"
    )
    
    // Tests for 'func TestResourceListSorting(t *testing.T)'.
    func TestResourceListSorting(t *testing.T) {
    	sortedResourceList := make([]string, len(resourceList))
    	copy(sortedResourceList, resourceList)
    	sort.Strings(sortedResourceList)
    	for i := 0; i < len(resourceList); i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    			poolObjInfos[i] = pinfo
    		}(i, pool, poolOpts[i])
    	}
    	wg.Wait()
    
    	// Sort the objInfos such that we always serve latest
    	// this is a defensive change to handle any duplicate
    	// content that may have been created, we always serve
    	// the latest object.
    	sort.Slice(poolObjInfos, func(i, j int) bool {
    		mtime1 := poolObjInfos[i].ObjInfo.ModTime
    		mtime2 := poolObjInfos[j].ObjInfo.ModTime
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    		TagSet: &ObjectTagSet{},
    	}
    
    	var list []tags.Tag
    	for k, v := range ot.ToMap() {
    		list = append(list, tags.Tag{
    			Key:   k,
    			Value: v,
    		})
    	}
    	// Always return in sorted order for tags.
    	sort.Slice(list, func(i, j int) bool {
    		return list[i].Key < list[j].Key
    	})
    	otags.TagSet.Tags = list
    
    	writeSuccessResponseXML(w, encodeResponse(otags))
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  4. cmd/metacache-entries.go

    type metaCacheEntries []metaCacheEntry
    
    // less function for sorting.
    func (m metaCacheEntries) less(i, j int) bool {
    	return m[i].name < m[j].name
    }
    
    // sort entries by name.
    // m is sorted and a sorted metadata object is returned.
    // Changes to m will also be reflected in the returned object.
    func (m metaCacheEntries) sort() metaCacheEntriesSorted {
    	if m.isSorted() {
    		return metaCacheEntriesSorted{o: m}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. cmd/signature-v2.go

    		}
    		if val == "" {
    			canonicalQueries = append(canonicalQueries, key)
    			continue
    		}
    		canonicalQueries = append(canonicalQueries, key+"="+val)
    	}
    
    	// The queries will be already sorted as resourceList is sorted, if canonicalQueries
    	// is empty strings.Join returns empty.
    	canonicalQuery := strings.Join(canonicalQueries, "&")
    	if canonicalQuery != "" {
    		return encodedResource + "?" + canonicalQuery
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. cmd/net.go

    	}
    
    	return ipList, err
    }
    
    // sortIPs - sort ips based on higher octets.
    // The logic to sort by last octet is implemented to
    // prefer CIDRs with higher octets, this in-turn skips the
    // localhost/loopback address to be not preferred as the
    // first ip on the list. Subsequently this list helps us print
    // a user friendly message with appropriate values.
    func sortIPs(ipList []string) []string {
    	if len(ipList) == 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    		// Marker being set to a value which is greater than and all object names when sorted (36).
    		// Expected to send an empty response in this case.
    		{"test-bucket-list-object", "", "zen", "", 10, ListObjectsInfo{}, nil, true},
    		// Marker being set to a value which is lesser than and all object names when sorted (37).
    		// Expected to send all the objects in the bucket in this case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    		})
    	if err != nil {
    		err = fmt.Errorf("decommissionObject: PutObject() %w", err)
    	}
    	return err
    }
    
    // versionsSorter sorts FileInfo slices by version.
    //
    //msgp:ignore versionsSorter
    type versionsSorter []FileInfo
    
    func (v versionsSorter) reverse() {
    	sort.Slice(v, func(i, j int) bool {
    		return v[i].ModTime.Before(v[j].ModTime)
    	})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  9. cmd/endpoint-ellipses.go

    		setCounts = append(setCounts, setCount)
    	}
    
    	// Not necessarily needed but it ensures to the readers
    	// eyes that we prefer a sorted setCount slice for the
    	// subsequent function to figure out the right common
    	// divisor, it avoids loops.
    	sort.Slice(setCounts, func(i, j int) bool {
    		return setCounts[i] < setCounts[j]
    	})
    
    	return setCounts
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  10. cmd/erasure-metadata.go

    			fi.Parts[i] = partInfo
    			return
    		}
    	}
    
    	// Proceed to include new part info.
    	fi.Parts = append(fi.Parts, partInfo)
    
    	// Parts in FileInfo should be in sorted order by part number.
    	sort.Slice(fi.Parts, func(i, j int) bool { return fi.Parts[i].Number < fi.Parts[j].Number })
    }
    
    // ObjectToPartOffset - translate offset of an object to offset of its individual part.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
Back to top