Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 411 for name (0.16 sec)

  1. internal/event/name_test.go

    	var blankName Name
    
    	testCases := []struct {
    		data         []byte
    		expectedName Name
    		expectErr    bool
    	}{
    		{[]byte("<Name>s3:ObjectAccessed:*</Name>"), ObjectAccessedAll, false},
    		{[]byte("<Name>s3:ObjectRemoved:Delete</Name>"), ObjectRemovedDelete, false},
    		{[]byte("<Name>s3:ObjectRemoved:NoOP</Name>"), ObjectRemovedNoOP, false},
    		{[]byte("<Name></Name>"), blankName, true},
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/cluster.go

    		iDirection, iSubset, iName, iPort := safelyParseSubsetKey(clusters[i].Name)
    		jDirection, jSubset, jName, jPort := safelyParseSubsetKey(clusters[j].Name)
    		if iName == jName {
    			if iSubset == jSubset {
    				if iPort == jPort {
    					return iDirection < jDirection
    				}
    				return iPort < jPort
    			}
    			return iSubset < jSubset
    		}
    		return iName < jName
    	})
    	return clusters, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  3. schema/constraint_test.go

    	}
    
    	results := map[string]schema.CheckConstraint{
    		"name_checker": {
    			Name:       "name_checker",
    			Constraint: "name <> 'jinzhu'",
    		},
    		"chk_user_checks_name2": {
    			Name:       "chk_user_checks_name2",
    			Constraint: "name <> 'jinzhu'",
    		},
    		"chk_user_checks_name3": {
    			Name:       "chk_user_checks_name3",
    			Constraint: "name <> 'jinzhu'",
    		},
    	}
    
    	checks := user.ParseCheckConstraints()
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. clause/expression_test.go

    	}, {
    		SQL:          "name1 = @name1 AND name2 = @name2 AND name3 = @name1",
    		Vars:         []interface{}{sql.Named("name1", "jinzhu"), sql.Named("name2", "jinzhu2")},
    		Result:       "name1 = ? AND name2 = ? AND name3 = ?",
    		ExpectedVars: []interface{}{"jinzhu", "jinzhu2", "jinzhu"},
    	}, {
    		SQL:          "name1 = @name1 AND name2 = @name2 AND name3 = @name1",
    		Vars:         []interface{}{map[string]interface{}{"name1": "jinzhu", "name2": "jinzhu2"}},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Aug 10 05:34:33 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  5. cni/pkg/ipset/nldeps_linux.go

    		IP:       net.IP(ip.Unmap().AsSlice()),
    		Protocol: &ipProto,
    	})
    	if err != nil {
    		return fmt.Errorf("failed to delete IP %s with and proto %d from ipset %s: %w", ip, ipProto, name, err)
    	}
    	return nil
    }
    
    func (m *realDeps) flush(name string) error {
    	err := netlink.IpsetFlush(name)
    	if err != nil {
    		return fmt.Errorf("failed to flush ipset %s: %w", name, err)
    	}
    	return nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. tests/non_std_test.go

    	}
    
    	animal = Animal{From: "somewhere"}              // No name fields, should be filled with the default value (galeone)
    	DB.Save(&animal).Update("From", "a nice place") // The name field shoul be untouched
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "galeone" {
    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  7. istioctl/pkg/authz/listener.go

    		if names, ok := actionToPolicy[action]; ok {
    			sortedNames := make([]string, 0, len(names))
    			for name := range names {
    				sortedNames = append(sortedNames, name)
    			}
    			sort.Strings(sortedNames)
    			for _, name := range sortedNames {
    				buf.WriteString(fmt.Sprintf("%s\t%s\t%d\n", action, name, len(policyToRule[name])))
    			}
    		}
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    )
    
    func TestConfigWriter_Prime(t *testing.T) {
    	tests := []struct {
    		name        string
    		wantConfigs int
    		inputFile   string
    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    			inputFile:   "",
    			wantConfigs: 0,
    			wantErr:     true,
    		},
    		{
    			name:        "loads valid ztunnel config_dump",
    			inputFile:   "testdata/dump.json",
    			wantConfigs: 27,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 18:21:48 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. internal/bucket/bandwidth/monitor_test.go

    	test1ActiveBuckets[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = m0
    	test1ActiveBuckets2 := make(map[BucketOptions]*bucketMeasurement)
    	test1ActiveBuckets2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = m1MiBPS
    
    	tests := []struct {
    		name   string
    		fields fields
    		want   *BucketBandwidthReport
    		want2  *BucketBandwidthReport
    	}{
    		{
    			name: "ZeroToOne",
    			fields: fields{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  10. internal/config/certsinfo.go

    			case 6:
    				values = append(values, fmt.Sprintf("C=%s", name.Value))
    			case 8:
    				values = append(values, fmt.Sprintf("ST=%s", name.Value))
    			case 10:
    				values = append(values, fmt.Sprintf("O=%s", name.Value))
    			case 11:
    				values = append(values, fmt.Sprintf("OU=%s", name.Value))
    			default:
    				values = append(values, fmt.Sprintf("UnknownOID=%s", name.Type.String()))
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
Back to top