Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,057 for qDecode (0.1 sec)

  1. security/pkg/pki/util/generate_csr_test.go

    					continue
    				}
    				t.Fatalf("%s: expected error to match expected error: %v", id, err)
    			} else {
    				t.Errorf("%s: failed to gen CSR", id)
    			}
    		}
    
    		pemBlock, _ := pem.Decode(csrPem)
    		if pemBlock == nil {
    			t.Fatalf("%s: failed to decode csr", id)
    		}
    		csr, err := x509.ParseCertificateRequest(pemBlock.Bytes)
    		if err != nil {
    			t.Fatalf("%s: failed to parse csr", id)
    		}
    		if err = csr.CheckSignature(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 25 09:40:13 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go

    		{
    			desc: "invalid yaml",
    			file: newString(`*`),
    			err:  "failed to decode",
    		},
    		{
    			desc: "invalid json",
    			file: newString(`{*`),
    			err:  "failed to decode",
    		},
    		// invalid object
    		{
    			desc: "missing kind",
    			file: newString(`{"apiVersion":"kubelet.config.k8s.io/v1beta1"}`),
    			err:  "failed to decode",
    		},
    		{
    			desc: "missing version",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. pkg/webhooks/validation/server/server.go

    	var obj runtime.Object
    	var ar *kube.AdmissionReview
    	if out, _, err := deserializer.Decode(body, nil, obj); err != nil {
    		reviewResponse = toAdmissionResponse(fmt.Errorf("could not decode body: %v", err))
    	} else {
    		ar, err = kube.AdmissionReviewKubeToAdapter(out)
    		if err != nil {
    			reviewResponse = toAdmissionResponse(fmt.Errorf("could not decode object: %v", err))
    		} else {
    			reviewResponse = admit(ar.Request)
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 04 06:13:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/image/jpeg/reader_test.go

    				buf.WriteString("\xff\x00")
    			}
    		}
    		// Write the "\xff\xd9" EOI marker.
    		buf.WriteString("\xff\xd9")
    
    		// Check that we can still decode the resultant image.
    		got, err := Decode(buf)
    		if err != nil {
    			t.Errorf("could not decode image #%d: %v", i, err)
    			nerr++
    			continue
    		}
    		if got.Bounds() != src.Bounds() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. src/encoding/json/example_test.go

    	for {
    		var m Message
    		if err := dec.Decode(&m); err == io.EOF {
    			break
    		} else if err != nil {
    			log.Fatal(err)
    		}
    		fmt.Printf("%s: %s\n", m.Name, m.Text)
    	}
    	// Output:
    	// Ed: Knock knock.
    	// Sam: Who's there?
    	// Ed: Go fmt.
    	// Sam: Go fmt who?
    	// Ed: Go fmt yourself!
    }
    
    // This example uses a Decoder to decode a stream of distinct JSON values.
    func ExampleDecoder_Token() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  6. src/encoding/json/bench_test.go

    	for i := 0; i < b.N; i++ {
    		if err := dec.Decode(&out); err != nil {
    			b.Fatalf("Decode error: %v", err)
    		}
    		r.Seek(0, 0)
    	}
    }
    
    func BenchmarkDecoderStream(b *testing.B) {
    	b.ReportAllocs()
    	b.StopTimer()
    	var buf bytes.Buffer
    	dec := NewDecoder(&buf)
    	buf.WriteString(`"` + strings.Repeat("x", 1000000) + `"` + "\n\n\n")
    	var x any
    	if err := dec.Decode(&x); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. pkg/apis/apiserverinternal/types.go

    	Spec StorageVersionSpec
    
    	// API server instances report the version they can decode and the version they
    	// encode objects to when persisting objects in the backend.
    	Status StorageVersionStatus
    }
    
    // StorageVersionSpec is an empty spec.
    type StorageVersionSpec struct{}
    
    // StorageVersionStatus API server instances report the versions they can decode and the version they
    // encode objects to when persisting objects in the backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. src/encoding/gob/example_interface_test.go

    func interfaceDecode(dec *gob.Decoder) Pythagoras {
    	// The decode will fail unless the concrete type on the wire has been
    	// registered. We registered it in the calling function.
    	var p Pythagoras
    	err := dec.Decode(&p)
    	if err != nil {
    		log.Fatal("decode:", err)
    	}
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/modes_test.go

    }
    
    var allEncModes = []cbor.EncMode{
    	modes.Encode,
    	modes.EncodeNondeterministic,
    }
    
    var decModeNames = map[cbor.DecMode]string{
    	modes.Decode:    "Decode",
    	modes.DecodeLax: "DecodeLax",
    }
    
    var allDecModes = []cbor.DecMode{
    	modes.Decode,
    	modes.DecodeLax,
    }
    
    func assertNilError(t *testing.T, e error) {
    	if e != nil {
    		t.Errorf("expected nil error, got: %v", e)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/api/apiserverinternal/v1alpha1";
    
    // An API server instance reports the version it can decode and the version it
    // encodes objects to when persisting objects in the backend.
    message ServerStorageVersion {
      // The ID of the reporting API server.
      optional string apiServerID = 1;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top