Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for matchList (0.14 sec)

  1. test/fixedbugs/issue4847.go

    // Issue 4847: initialization cycle is not detected.
    
    package p
    
    type (
    	E int
    	S int
    )
    
    type matcher func(s *S) E
    
    func matchList(s *S) E { return matcher(matchAnyFn)(s) }
    
    var foo = matcher(matchList)
    
    var matchAny = matcher(matchList) // ERROR "initialization cycle|depends upon itself"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 519 bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/init1.go

    func f6() { _ = y6 }
    
    // full test case
    
    type (
          E int
          S int
    )
    
    type matcher func(s *S) E
    
    func matchList(s *S) E { return matcher(matchAnyFn)(s) }
    
    var foo = matcher(matchList)
    
    var matchAny /* ERROR "initialization cycle" */ = matcher(matchList)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
    		klog.Warningf("Failed preparing watchlist options for examples, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
    	} else if hasWatchListOptionsPrepared {
    		result, err := c.watchList(ctx, watchListOptions)
    		if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation_test.go

    	}, {
    		name: "watch-sendInitialEvents-no-watchlist-fg-disabled",
    		opts: internalversion.ListOptions{
    			Watch:                true,
    			SendInitialEvents:    boolPtrFn(true),
    			ResourceVersionMatch: metav1.ResourceVersionMatchNotOlderThan,
    			AllowWatchBookmarks:  true,
    		},
    		expectErrors: []string{"sendInitialEvents: Forbidden: sendInitialEvents is forbidden for watch unless the WatchList feature gate is enabled"},
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. security/pkg/pki/util/verify_cert.go

    		}
    	}
    	if strings.HasPrefix(host, "spiffe") {
    		matchHost := false
    		ids, err := ExtractIDs(cert.Extensions)
    		if err != nil {
    			return err
    		}
    		for _, id := range ids {
    			if strings.HasSuffix(id, host) {
    				matchHost = true
    				break
    			}
    		}
    		if !matchHost {
    			return fmt.Errorf("the certificate doesn't have the expected SAN for: %s", host)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 10:37:29 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  6. api/openapi-spec/README.md

    are associated with a [kubernetes resource](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources).
    Action can be one of `get`, `list`, `put`, `patch`, `post`, `delete`, `deletecollection`, `watch`, `watchlist`, `proxy`, or `connect`.
    
    
    For example:
    
    ``` json
    "paths": {
        ...
        "/api/v1/namespaces/{namespace}/pods/{name}": {
            ...
            "get": {
            ...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 15 01:29:23 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation.go

    		}
    		if !isWatchListFeatureEnabled {
    			allErrs = append(allErrs, field.Forbidden(field.NewPath("sendInitialEvents"), "sendInitialEvents is forbidden for watch unless the WatchList feature gate is enabled"))
    		}
    	}
    	if len(match) > 0 {
    		if options.SendInitialEvents == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 09:55:40 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width.go

    		// during its initialization (sending init events), its cost should then
    		// be computed the same way as for a regular list.
    		if utilfeature.DefaultFeatureGate.Enabled(features.WatchList) {
    			return e.listWorkEstimator.EstimateWork(r, flowSchemaName, priorityLevelName)
    		}
    	case "create", "update", "patch", "delete":
    		return e.mutatingWorkEstimator.EstimateWork(r, flowSchemaName, priorityLevelName)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:26:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. src/path/filepath/match_test.go

    import (
    	"fmt"
    	"internal/testenv"
    	"os"
    	. "path/filepath"
    	"reflect"
    	"runtime"
    	"slices"
    	"strings"
    	"testing"
    )
    
    type MatchTest struct {
    	pattern, s string
    	match      bool
    	err        error
    }
    
    var matchTests = []MatchTest{
    	{"abc", "abc", true, nil},
    	{"*", "abc", true, nil},
    	{"*c", "abc", true, nil},
    	{"a*", "a", true, nil},
    	{"a*", "abc", true, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top