- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,158 for index (0.19 sec)
-
pkg/apis/resource/structured/namedresources/validation/validation_test.go
resources: testResources([]resourceapi.NamedResourcesInstance{{Name: goodName, Attributes: []resourceapi.NamedResourcesAttribute{{Name: goodName}}}}), }, "duplicate-value": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 10.4K bytes - Viewed (0) -
tests/integration/security/filebased_tls_origination/main_test.go
for index, namespacedName := range apps.Ns1.All.NamespacedNames() { switch { case namespacedName.Name == "client": client = apps.Ns1.All[index] case namespacedName.Name == "server": server = apps.Ns1.All[index] case namespacedName.Name == "internal-client": internalClient = apps.Ns1.All[index] } } for index, namespacedName := range apps.Ns2.All.NamespacedNames() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 7.3K bytes - Viewed (0) -
cmd/gotemplate/gotemplate.go
func main() { kvs := make(map[string]string) for _, keyValue := range os.Args[1:] { index := strings.Index(keyValue, "=") if index <= 0 { fmt.Fprintf(os.Stderr, "optional arguments must be of the form <key>=<value>, got instead: %q\n", keyValue) os.Exit(1) } kvs[keyValue[0:index]] = keyValue[index+1:] } if err := generate(os.Stdin, os.Stdout, kvs); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 22 18:39:23 UTC 2023 - 2.6K bytes - Viewed (0) -
cmd/erasure-metadata.go
// Start writing `xl.meta` to all disks in parallel. for index := range disks { index := index g.Go(func() error { if disks[index] == nil { return errDiskNotFound } // Pick one FileInfo for a disk at index. fi := files[index] fi.Erasure.Index = index + 1 if fi.IsValid() { return disks[index].WriteMetadata(ctx, origbucket, bucket, prefix, fi) } return errFileCorrupt
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/apis/flowcontrol/validation/validation_test.go
field.Required(field.NewPath("spec").Child("rules").Index(0).Child("subjects").Index(0).Child("serviceAccount"), "serviceAccount is required when subject kind is 'ServiceAccount'"), field.Forbidden(field.NewPath("spec").Child("rules").Index(0).Child("subjects").Index(0).Child("user"), "user is forbidden when subject kind is not 'User'"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 54.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/equality.go
Duration: r.Duration, } r.children[field] = res return res } // Index returns the child of the receiver at the given index. // Returns nil if the given index is out of bounds, or its value is not // correlatable to an old value. // If receiver is nil or if the new value is not an array, returns nil. func (r *CorrelatedObject) Index(i int) *CorrelatedObject { start := time.Now() defer func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 21:53:21 UTC 2023 - 9.1K bytes - Viewed (0) -
pkg/apis/apiserverinternal/validation/validation.go
if condition.Reason == "" { allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("reason"), "reason cannot be empty")) } if condition.Message == "" { allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("message"), "message cannot be empty")) } } return allErrs } const dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 13 21:43:49 UTC 2023 - 9.1K bytes - Viewed (0) -
src/go/types/selection.go
return s.obj.Type() } // Index describes the path from x to f in x.f. // The last index entry is the field or method index of the type declaring f; // either: // // 1. the list of declared methods of a named type; or // 2. the list of methods of an interface type; or // 3. the list of fields of a struct type. // // The earlier index entries are the indices of the embedded fields implicitly
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/strconv/bytealg.go
// license that can be found in the LICENSE file. //go:build !compiler_bootstrap package strconv import "internal/bytealg" // index returns the index of the first instance of c in s, or -1 if missing. func index(s string, c byte) int { return bytealg.IndexByteString(s, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 389 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/inspector.go
typ: 0, // temporarily used to accumulate type bits of subtree index: len(events), // push event temporarily holds own index } stack = append(stack, ev) events = append(events, ev) } else { // pop top := len(stack) - 1 ev := stack[top] typ := typeOf(ev.node) push := ev.index parent := top - 1 events[push].typ = typ // set type of push
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 6.6K bytes - Viewed (0)