Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 519 for recognizers (0.26 sec)

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

    			skipped = append(skipped, t)
    		}
    	}
    
    	// try recognizers that returned unknown or didn't recognize their data
    	for _, r := range skipped {
    		out, actual, err := r.Decode(data, gvk, into)
    		if err != nil {
    			// if we got an object back from the decoder, and the
    			// error was a strict decoding error (e.g. unknown or
    			// duplicate fields), we still consider the recognizer
    			// to have understood the object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  2. pkg/controller/certificates/approver/sarapprove.go

    	approver := &sarApprover{
    		client:      client,
    		recognizers: recognizers(),
    	}
    	return certificates.NewCertificateController(
    		ctx,
    		"csrapproving",
    		client,
    		csrInformer,
    		approver.handle,
    	)
    }
    
    func recognizers() []csrRecognizer {
    	recognizers := []csrRecognizer{
    		{
    			recognize:      isSelfNodeClientCert,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 21 16:03:42 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. pkg/controller/certificates/approver/sarapprove_test.go

    			})
    			approver := sarApprover{
    				client: client,
    				recognizers: []csrRecognizer{
    					{
    						successMessage: "tester",
    						permission:     authorization.ResourceAttributes{Group: "foo", Resource: "bar", Subresource: "baz"},
    						recognize: func(csr *capi.CertificateSigningRequest, x509cr *x509.CertificateRequest) bool {
    							return c.recognized
    						},
    					},
    				},
    			}
    			csr := makeTestCsr()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultIgnoredConfigurationInputsTest.kt

            assertFalse(instance.isFileSystemCheckIgnoredFor(File("xyz/abc")))
        }
    
        @Test
        fun `recognizes relative paths against rootDirectory`() {
            val instance = createFromPaths(listOf("test/123"))
            assertTrue(instance.isFileSystemCheckIgnoredFor(rootDir.resolve("test/123")))
        }
    
        @Test
        fun `recognizes multiple paths`() {
            val instance = createFromPaths(listOf("path/one", "path/two"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/crdserverscheme/unstructured.go

    	}
    
    	return nil, false, runtime.NewNotRegisteredErrForType("crdserverscheme.UnstructuredObjectTyper", reflect.TypeOf(obj))
    }
    
    // Recognizes returns true if the provided group,version,kind was in the
    // discovery information.
    func (d *UnstructuredObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool {
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 06 18:08:14 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    		in         []byte
    		recognizes bool
    	}{
    		{
    			in:         nil,
    			recognizes: false,
    		},
    		{
    			in:         []byte{},
    			recognizes: false,
    		},
    		{
    			in:         []byte{0xd9},
    			recognizes: false,
    		},
    		{
    			in:         []byte{0xd9, 0xd9},
    			recognizes: false,
    		},
    		{
    			in:         []byte{0xd9, 0xd9, 0xf7},
    			recognizes: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. src/text/scanner/scanner.go

    	ErrorCount int
    
    	// The Mode field controls which tokens are recognized. For instance,
    	// to recognize Ints, set the ScanInts bit in Mode. The field may be
    	// changed at any time.
    	Mode uint
    
    	// The Whitespace field controls which characters are recognized
    	// as white space. To recognize a character ch <= ' ' as white space,
    	// set the ch'th bit in Whitespace (the Scanner's behavior is undefined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go

    		if ok, _, err := s.RecognizesData(data); err != nil || ok {
    			t.Errorf("%d: should not recognize data: %v", i, err)
    		}
    	}
    	recognizes := [][]byte{
    		{0x6b, 0x38, 0x73, 0x00},
    		{0x6b, 0x38, 0x73, 0x00, 0x01},
    	}
    	for i, data := range recognizes {
    		if ok, _, err := s.RecognizesData(data); err != nil || !ok {
    			t.Errorf("%d: should recognize data: %v", i, err)
    		}
    	}
    }
    
    func TestEncode(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go

    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/runtime/serializer/json"
    	"k8s.io/apimachinery/pkg/runtime/serializer/protobuf"
    	"k8s.io/apimachinery/pkg/runtime/serializer/recognizer"
    	"k8s.io/apimachinery/pkg/runtime/serializer/versioning"
    )
    
    // serializerExtensions are for serializers that are conditionally compiled in
    var serializerExtensions = []func(*runtime.Scheme) (serializerType, bool){}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/KotlinBuildScriptPatternTest.kt

            )
        }
    
        @Test
        fun `recognizes build scripts from script templates`() {
            checkScriptRecognizedBy(KotlinProjectScriptTemplate::class, ScriptType.BUILD)
        }
    
        @Test
        fun `recognizes settings scripts from script templates`() {
            checkScriptRecognizedBy(KotlinSettingsScriptTemplate::class, ScriptType.SETTINGS)
        }
    
        @Test
        fun `recognizes init scripts from script templates`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top