Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for doDecode (1.43 sec)

  1. src/crypto/x509/x509_test.go

    func TestCRLCreation(t *testing.T) {
    	block, _ := pem.Decode([]byte(pemPrivateKey))
    	privRSA, _ := ParsePKCS1PrivateKey(block.Bytes)
    	block, _ = pem.Decode([]byte(pemCertificate))
    	certRSA, _ := ParseCertificate(block.Bytes)
    
    	block, _ = pem.Decode([]byte(ed25519CRLKey))
    	privEd25519, _ := ParsePKCS8PrivateKey(block.Bytes)
    	block, _ = pem.Decode([]byte(ed25519CRLCertificate))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  2. cluster/gce/gci/configure-helper.sh

        local -r auth_dir="/etc/srv/kubernetes"
        echo "${ETCD_CA_CERT}" | base64 --decode | gunzip > "${auth_dir}/etcd-ca.crt"
        echo "${ETCD_PEER_KEY}" | base64 --decode > "${auth_dir}/etcd-peer.key"
        echo "${ETCD_PEER_CERT}" | base64 --decode | gunzip > "${auth_dir}/etcd-peer.crt"
      fi
    }
    
    function create-master-etcd-apiserver-auth {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  3. cmd/server_test.go

    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	var results ListBucketsResponse
    	// parse the list bucket response.
    	decoder := xml.NewDecoder(response.Body)
    	err = decoder.Decode(&results)
    	// validating that the xml-decoding/parsing was successful.
    	c.Assert(err, nil)
    
    	// Fetch the bucket created above
    	var createdBucket Bucket
    	for _, b := range results.Buckets.Buckets {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  4. src/crypto/x509/verify_test.go

    		t.Fatalf("error was not an UnhandledCriticalExtension: %v", err)
    	}
    }
    
    func certificateFromPEM(pemBytes string) (*Certificate, error) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	if block == nil {
    		return nil, errors.New("failed to decode PEM")
    	}
    	return ParseCertificate(block.Bytes)
    }
    
    func testVerify(t *testing.T, test verifyTest, useSystemRoots bool) {
    	opts := VerifyOptions{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  5. cmd/object-handlers_test.go

    		t.Fatalf("%s:  Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code)
    	}
    
    	// decode the response body.
    	decoder := xml.NewDecoder(rec.Body)
    	multipartResponse := &InitiateMultipartUploadResponse{}
    
    	err = decoder.Decode(multipartResponse)
    	if err != nil {
    		t.Fatalf("Error decoding the recorded response Body")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    		(hip.clientToken != "" && (hip.forceStart || hip.forceStop)) {
    		err = ErrInvalidRequest
    		return
    	}
    
    	// ignore body if clientToken is provided
    	if hip.clientToken == "" {
    		jerr := json.NewDecoder(r).Decode(&hip.hs)
    		if jerr != nil {
    			adminLogIf(GlobalContext, jerr, logger.ErrorKind)
    			err = ErrRequestBodyParse
    			return
    		}
    	}
    
    	err = ErrNone
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  7. src/cmd/go/alldocs.go

    //
    //	At least in the current tree, these invocations all print the
    //	documentation for json.Decoder's Decode method:
    //
    //	go doc json.Decoder.Decode
    //	go doc json.decoder.decode
    //	go doc json.decode
    //	cd go/src/encoding/json; go doc decode
    //
    // Flags:
    //
    //	-all
    //		Show all the documentation for the package.
    //	-c
    //		Respect case when matching symbols.
    //	-cmd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    func mustSchema(source string) *schema.Structural {
    	source = FixTabsOrDie(source)
    	d := yaml.NewYAMLOrJSONDecoder(strings.NewReader(source), 4096)
    	props := &apiextensions.JSONSchemaProps{}
    	if err := d.Decode(props); err != nil {
    		panic(err)
    	}
    	convertedProps := &apiextensionsinternal.JSONSchemaProps{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    	type data struct {
    		Addr string
    	}
    	var addrs [2]data
    	for i := range addrs {
    		res, err := cst.c.Get(cst.ts.URL)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if err := json.NewDecoder(res.Body).Decode(&addrs[i]); err != nil {
    			t.Fatal(err)
    		}
    		if addrs[i].Addr == "" {
    			t.Fatal("no address")
    		}
    		res.Body.Close()
    	}
    	if addrs[0] != addrs[1] {
    		t.Fatalf("connection not reused")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top