Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for stringSlice (0.4 sec)

  1. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.json

                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
                  ]
                },
                "version": "versionValue"
              }
            ]
          }
        ]
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. pkg/apis/resource/namedresources.go

    	// resolves to the corresponding value of the instance under evaluation.
    	// For example:
    	//
    	//    attributes.quantity["a"].isGreaterThan(quantity("0")) &&
    	//    attributes.stringslice["b"].isSorted()
    	Selector string
    }
    
    // NamedResourcesFilter is used in ResourceFilterModel.
    type NamedResourcesFilter struct {
    	// Selector is a CEL expression which must evaluate to true if a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/sort/sort_slices_benchmark_test.go

    		}
    		ss[i] = sb.String()
    	}
    	return ss
    }
    
    func BenchmarkSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		Sort(StringSlice(ss))
    	}
    }
    
    func BenchmarkSlicesSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		slices.Sort(ss)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/fields/fields.go

    func (ls Set) String() string {
    	selector := make([]string, 0, len(ls))
    	for key, value := range ls {
    		selector = append(selector, key+"="+value)
    	}
    	// Sort for determinism.
    	sort.StringSlice(selector).Sort()
    	return strings.Join(selector, ",")
    }
    
    // Has returns whether the provided field exists in the map.
    func (ls Set) Has(field string) bool {
    	_, exists := ls[field]
    	return exists
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 19 14:50:16 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  5. pkg/apis/resource/structured/namedresources/validation/validation_test.go

    		},
    		"intslice": {
    			selector: `attributes.intslice["name"].isSorted()`,
    		},
    		"string": {
    			selector: `attributes.string["name"] == "fish"`,
    		},
    		"stringslice": {
    			selector: `attributes.stringslice["name"].isSorted()`,
    		},
    		"version": {
    			selector: `attributes.version["name"].isGreaterThan(semver("1.0.0"))`,
    		},
    	}
    
    	for name, scenario := range scenarios {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. pkg/api/v1/service/util.go

    )
    
    const (
    	defaultLoadBalancerSourceRanges = "0.0.0.0/0"
    )
    
    // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0
    func IsAllowAll(ipnets utilnet.IPNetSet) bool {
    	for _, s := range ipnets.StringSlice() {
    		if s == "0.0.0.0/0" {
    			return true
    		}
    	}
    	return false
    }
    
    // GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. pkg/api/service/util.go

    )
    
    const (
    	defaultLoadBalancerSourceRanges = "0.0.0.0/0"
    )
    
    // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0
    func IsAllowAll(ipnets utilnet.IPNetSet) bool {
    	for _, s := range ipnets.StringSlice() {
    		if s == "0.0.0.0/0" {
    			return true
    		}
    	}
    	return false
    }
    
    // GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. hack/verify-flags-underscore.py

                   re.compile('.Int[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Bool[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Duration[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.StringSlice[P]?\("([^"]*)",[^,]+,[^)]+\)') ]
    
        new_excluded_flags = set()
        # walk all the files looking for any flags being declared
        for pathname in files:
            if not pathname.endswith(".go"):
                continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/labels/labels.go

    func (ls Set) String() string {
    	selector := make([]string, 0, len(ls))
    	for key, value := range ls {
    		selector = append(selector, key+"="+value)
    	}
    	// Sort for determinism.
    	sort.StringSlice(selector).Sort()
    	return strings.Join(selector, ",")
    }
    
    // Has returns whether the provided label exists in the map.
    func (ls Set) Has(label string) bool {
    	_, exists := ls[label]
    	return exists
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. pkg/apis/resource/structured/namedresources/validation/validation.go

    		}
    		if attribute.IntSliceValue != nil {
    			entries.Insert("intSlice")
    		}
    		if attribute.StringValue != nil {
    			entries.Insert("string")
    		}
    		if attribute.StringSliceValue != nil {
    			entries.Insert("stringSlice")
    		}
    		if attribute.VersionValue != nil {
    			entries.Insert("version")
    			if !semverRe.MatchString(*attribute.VersionValue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:20 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top