Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for marshaling (0.18 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    		switch r.URL.Path {
    		case "/.testing/keys":
    			w.Header().Set("Content-Type", "application/json")
    			keyBytes, err := json.Marshal(keys)
    			if err != nil {
    				t.Fatalf("unexpected error while marshaling keys: %v", err)
    			}
    			klog.V(5).Infof("%v: returning: %+v", r.URL, string(keyBytes))
    			w.Write(keyBytes)
    
    		// /c/d/bar/.well-known/openid-configuration is used to test issuer url and discovery url with a path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_gen.go

    	for za0003 := range z.Parts {
    		o, err = z.Parts[za0003].MarshalMsg(o)
    		if err != nil {
    			err = msgp.WrapError(err, "Parts", za0003)
    			return
    		}
    	}
    	o, err = z.Erasure.MarshalMsg(o)
    	if err != nil {
    		err = msgp.WrapError(err, "Erasure")
    		return
    	}
    	o = msgp.AppendBool(o, z.MarkDeleted)
    	o, err = z.ReplicationState.MarshalMsg(o)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  3. cmd/server_test.go

    	// while unmarshalling time.Time type for 'Initiated' field.
    	// time.Time does not honor xml marshaller, it means that we need
    	// to encode/format it before giving it to xml marshaling.
    
    	// This below check adds client side verification to see if its
    	// truly parsable.
    
    	// listMultipartUploadsResponse - format for list multipart uploads response.
    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/x509_test.go

    		{
    			SerialNumber:   big.NewInt(1),
    			RevocationTime: nowUTC,
    		},
    		{
    			SerialNumber: big.NewInt(42),
    			// RevocationTime should be converted to UTC before marshaling.
    			RevocationTime: now,
    		},
    	}
    	expectedCerts := []pkix.RevokedCertificate{
    		{
    			SerialNumber:   big.NewInt(1),
    			RevocationTime: nowUTC,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/exec.go

    		if file, _, err := cache.GetFile(c, key); err == nil {
    			a.built = file
    			return nil
    		}
    	}
    
    	js, err := json.MarshalIndent(vcfg, "", "\t")
    	if err != nil {
    		return fmt.Errorf("internal error marshaling vet config: %v", err)
    	}
    	js = append(js, '\n')
    	if err := sh.writeFile(a.Objdir+"vet.cfg", js); err != nil {
    		return err
    	}
    
    	// TODO(rsc): Why do we pass $GCCGO to go vet?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  6. src/reflect/all_test.go

    func TestCallArgLive(t *testing.T) {
    	type T struct{ X, Y *string } // pointerful aggregate
    
    	F := func(t T) { *t.X = "ok" }
    
    	// In reflect.Value.Call, trigger a garbage collection in reflect.call
    	// between marshaling argument and the actual call.
    	*CallGC = true
    
    	x := new(string)
    	runtime.SetFinalizer(x, func(p *string) {
    		if *p != "ok" {
    			t.Errorf("x dead prematurely")
    		}
    	})
    	v := T{x, nil}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  7. cmd/bucket-replication.go

    	// Initialize the resync meta header.
    	binary.LittleEndian.PutUint16(data[0:2], resyncMetaFormat)
    	binary.LittleEndian.PutUint16(data[2:4], resyncMetaVersion)
    
    	buf, err := brs.MarshalMsg(data)
    	if err != nil {
    		return err
    	}
    
    	configFile := path.Join(bucketMetaPrefix, bucket, replicationDir, resyncFileName)
    	return saveConfig(ctx, objectAPI, configFile, buf)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    	// Initialize the resync meta header.
    	binary.LittleEndian.PutUint16(data[0:2], siteResyncMetaFormat)
    	binary.LittleEndian.PutUint16(data[2:4], siteResyncMetaVersion)
    
    	buf, err := ss.MarshalMsg(data)
    	if err != nil {
    		return err
    	}
    	return saveConfig(ctx, objectAPI, getSRResyncFilePath(ss.DeplID), buf)
    }
    
    func getSRResyncFilePath(dID string) string {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
Back to top