Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 178 for Equals (0.37 sec)

  1. cmd/erasure-metadata.go

    	for k, v := range m {
    		switch {
    		case equals(k, ReservedMetadataPrefixLower+ReplicationTimestamp):
    			d.ReplicaTimeStamp, _ = amztime.ParseReplicationTS(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicaTimestamp):
    			d.ReplicaTimeStamp, _ = amztime.ParseReplicationTS(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicaStatus):
    			d.ReplicaStatus = replication.StatusType(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicationStatus):
    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)
  2. internal/s3select/sql/value_test.go

    				wantOk: a.IsNull() && b.IsNull() && i == 0 && j == 0,
    			})
    		}
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if gotOk := tt.fields.a.Equals(tt.fields.b); gotOk != tt.wantOk {
    				t.Errorf("Equals() = %v, want %v", gotOk, tt.wantOk)
    			}
    		})
    	}
    }
    
    func TestValue_CSVString(t *testing.T) {
    	type test struct {
    		name    string
    		want    string
    		wantAlt string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. cmd/storage-datatypes.go

    func (fi FileInfo) ReadQuorum(dquorum int) int {
    	if fi.Deleted {
    		return dquorum
    	}
    	return fi.Erasure.DataBlocks
    }
    
    // Equals checks if fi(FileInfo) matches ofi(FileInfo)
    func (fi FileInfo) Equals(ofi FileInfo) (ok bool) {
    	typ1, ok1 := crypto.IsEncrypted(fi.Metadata)
    	typ2, ok2 := crypto.IsEncrypted(ofi.Metadata)
    	if ok1 != ok2 {
    		return false
    	}
    	if typ1 != typ2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    		want map[string]string
    	}{
    		{name: "empty", arg: []string{""}, want: map[string]string{"": ""}},
    		{name: "one-valid", arg: []string{"key=value"}, want: map[string]string{"key": "value"}},
    		{name: "one-valid-double-equals", arg: []string{"key==value"}, want: map[string]string{"key": "=value"}},
    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    	}
    	for _, tt := range tests {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	for k, v := range oi.UserDefined {
    		if stringsHasPrefixFold(k, ReservedMetadataPrefixLower) {
    			continue
    		}
    
    		if equals(k, xhttp.AmzBucketReplicationStatus) {
    			continue
    		}
    
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			continue
    		}
    		meta[k] = v
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  6. cmd/handler-utils.go

    		metadata[strings.ToLower(xhttp.ContentType)] = "binary/octet-stream"
    	}
    
    	// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    	for k := range metadata {
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			delete(metadata, k)
    		}
    	}
    
    	if contentEncoding, ok := metadata[strings.ToLower(xhttp.ContentEncoding)]; ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  7. internal/s3select/select_test.go

    			wantResult: ``,
    		},
    		{
    			name:       "indexed-list-match-equals",
    			query:      `SELECT * from s3object s WHERE (7,8.5,9) = s.nested[1]`,
    			wantResult: `{"id":3,"title":"Second Record","desc":"another text","nested":[[2,3,4],[7,8.5,9]]}`,
    		},
    		{
    			name:       "indexed-list-match-equals-s-star",
    			query:      `SELECT s.* from s3object s WHERE (7,8.5,9) = s.nested[1]`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    	}
    	if !currDeploymentIDsSet.IsEmpty() {
    		// If current cluster is already SR enabled and no new site being added ,fail.
    		if currDeploymentIDsSet.Equals(deploymentIDsSet) {
    			return madmin.ReplicateAddStatus{}, errSRCannotJoin
    		}
    		if len(currDeploymentIDsSet.Intersection(deploymentIDsSet)) != len(currDeploymentIDsSet) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  9. cmd/api-response.go

    			// values to client.
    			toRemove = append(toRemove, k)
    			continue
    		}
    
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			toRemove = append(toRemove, k)
    			continue
    		}
    	}
    
    	for _, k := range toRemove {
    		delete(m, k)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  10. cmd/iam.go

    			// check if the policy mappings are equal, if they are we don't need
    			// to return an error.
    			policiesDiffer := false
    			firstMappedPolicies := policyMap[origKeys[0]].policySet()
    			for i := 1; i < len(origKeys); i++ {
    				otherMappedPolicies := policyMap[origKeys[i]].policySet()
    				if !firstMappedPolicies.Equals(otherMappedPolicies) {
    					policiesDiffer = true
    					break
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top