Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 102 for index (0.05 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go

    		return nil, modes.DecodeLax.Unmarshal(data, into)
    	}
    
    	err := modes.Decode.Unmarshal(data, into)
    	// TODO: UnknownFieldError is ambiguous. It only provides the index of the first problematic
    	// map entry encountered and does not indicate which map the index refers to.
    	var unknownField *cbor.UnknownFieldError
    	if errors.As(err, &unknownField) {
    		// Unlike JSON, there are no strict errors in CBOR for duplicate map keys. CBOR maps
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. pkg/kube/krt/fetch.go

    		for _, k := range d.filter.keys.List() {
    			if i := c.GetKey(Key[T](k)); i != nil {
    				list = append(list, *i)
    			}
    		}
    	} else if d.filter.listFromIndex != nil {
    		// Otherwise from an index; fetch from there. Often this is a list of a namespace
    		list = d.filter.listFromIndex().([]T)
    	} else {
    		// Otherwise get everything
    		list = c.List()
    	}
    	list = slices.FilterInPlace(list, func(i T) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/capture/run_linux.go

    				}
    
    				if err := netlink.RouteAdd(&netlink.Route{
    					Dst:       dst,
    					Scope:     netlink.SCOPE_HOST,
    					Type:      unix.RTN_LOCAL,
    					Table:     tproxyTable,
    					LinkIndex: link.Attrs().Index,
    				}); ignoreExists(err) != nil {
    					return fmt.Errorf("failed to add route: %v", err)
    				}
    			}
    		}
    	}
    	return nil
    }
    
    func ConfigureRoutes(cfg *config.Config) error {
    	if cfg.DryRun {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    //	fmt.Printf("%d", 1, 2) // fmt.Printf call needs 1 arg, but has 2 args
    //
    // Explicit argument indexes must be no greater than the number of
    // arguments:
    //
    //	fmt.Printf("%[3]d", 1, 2) // fmt.Printf call has invalid argument index 3
    //
    // The checker also uses a heuristic to report calls to Print-like
    // functions that appear to have been intended for their Printf-like
    // counterpart:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/testing/fstest/mapfs.go

    	var list []mapFileInfo
    	var elem string
    	var need = make(map[string]bool)
    	if name == "." {
    		elem = "."
    		for fname, f := range fsys {
    			i := strings.Index(fname, "/")
    			if i < 0 {
    				if fname != "." {
    					list = append(list, mapFileInfo{fname, f})
    				}
    			} else {
    				need[fname[:i]] = true
    			}
    		}
    	} else {
    		elem = name[strings.LastIndex(name, "/")+1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/dir.go

    	}
    	mode := string(data)
    	mode = strings.TrimSpace(mode)
    
    	// Forward compatibility for https://go.dev/issue/63142#issuecomment-1734025130
    	//
    	// If the modefile contains a date, return it.
    	if idx := strings.Index(mode, " "); idx >= 0 {
    		d, err := time.Parse("2006-01-02", mode[idx+1:])
    		if err != nil {
    			d = time.Time{}
    		}
    		return mode[:idx], d
    	}
    
    	return mode, time.Time{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. pkg/config/analysis/analyzers/telemetry/selector.go

    func (a *SelectorAnalyzer) Analyze(c analysis.Context) {
    	podsToTelemetries := make(map[resource.FullName][]*resource.Instance)
    
    	// This is using an unindexed approach for matching selectors.
    	// Using an index for selectoes is problematic because selector != label
    	// We can match a label to a selector, but we can't generate a selector from a label.
    	c.ForEach(gvk.Telemetry, func(rs *resource.Instance) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/trace/event/event.go

    	Args []string
    
    	// StringIDs indicates which of the arguments are string IDs.
    	StringIDs []int
    
    	// StackIDs indicates which of the arguments are stack IDs.
    	//
    	// The list is not sorted. The first index always refers to
    	// the main stack for the current execution context of the event.
    	StackIDs []int
    
    	// StartEv indicates the event type of the corresponding "start"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/net/ipsock_posix.go

    	// IPv6 address.
    	ip6 := ip.To16()
    	if ip6 == nil {
    		return syscall.SockaddrInet6{}, &AddrError{Err: "non-IPv6 address", Addr: ip.String()}
    	}
    	sa := syscall.SockaddrInet6{Port: port, ZoneId: uint32(zoneCache.index(zone))}
    	copy(sa.Addr[:], ip6)
    	return sa, nil
    }
    
    // ipToSockaddr should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    			break
    		}
    	}
    }
    
    func (check *checker) comment(pos token.Pos, line string) {
    	if !strings.HasPrefix(line, "//go:") {
    		return
    	}
    	// testing hack: stop at // ERROR
    	if i := strings.Index(line, " // ERROR "); i >= 0 {
    		line = line[:i]
    	}
    
    	verb := line
    	if i := strings.IndexFunc(verb, unicode.IsSpace); i >= 0 {
    		verb = verb[:i]
    		if line[i] != ' ' && line[i] != '\t' && line[i] != '\n' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top