- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 88 for marshalers (0.21 sec)
-
cmd/xl-storage-format-v1.go
Hash []byte } type checksumInfoJSON struct { Name string `json:"name"` Algorithm string `json:"algorithm"` Hash string `json:"hash,omitempty"` } // MarshalJSON marshals the ChecksumInfo struct func (c ChecksumInfo) MarshalJSON() ([]byte, error) { info := checksumInfoJSON{ Name: fmt.Sprintf("part.%d", c.PartNumber), Algorithm: c.Algorithm.String(),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 8.2K bytes - Viewed (0) -
src/crypto/tls/handshake_server_tls13.go
type binaryMarshaler interface { MarshalBinary() (data []byte, err error) UnmarshalBinary(data []byte) error } marshaler, ok := in.(binaryMarshaler) if !ok { return nil } state, err := marshaler.MarshalBinary() if err != nil { return nil } out := h.New() unmarshaler, ok := out.(binaryMarshaler) if !ok { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 30.5K bytes - Viewed (0) -
pkg/bootstrap/option/convert.go
return "" } b, err := json.Marshal(v) if err != nil { log.Error(err.Error()) return "" } return string(b) } // marshalMetadata combines type metadata and untyped metadata and marshals to json // This allows passing arbitrary metadata to Envoy, while still supported typed metadata for known types func marshalMetadata(metadata *model.BootstrapNodeMetadata, rawMeta map[string]any) (string, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 00:35:05 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
p.encodeMu.Unlock() return b } // Write writes the profile as a gzip-compressed marshaled protobuf. func (p *Profile) Write(w io.Writer) error { zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(serialize(p)) return err } // WriteUncompressed writes the profile as a marshaled protobuf. func (p *Profile) WriteUncompressed(w io.Writer) error { _, err := w.Write(serialize(p))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/metacache-set_gen.go
if err != nil { return } err = en.WriteInt(z.set) if err != nil { err = msgp.WrapError(err, "set") return } return } // MarshalMsg implements msgp.Marshaler func (z *listPathOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 19 // string "ID" o = append(o, 0xde, 0x0, 0x13, 0xa2, 0x49, 0x44)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Mar 19 20:23:12 UTC 2024 - 13.8K bytes - Viewed (0) -
pkg/config/model.go
b, err := protomarshal.MarshalIndent(pb, indent) return b, err } } b := &bytes.Buffer{} // gogo protobuf if pb, ok := s.(gogoproto.Message); ok { err := (&gogojsonpb.Marshaler{Indent: indent}).Marshal(b, pb) return b.Bytes(), err } if pretty { return json.MarshalIndent(s, "", indent) } return json.Marshal(s) } type deepCopier interface {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 12.6K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
scStr := string(b) if scStr == "" { return nil } s, err := parseStorageClass(scStr) if err != nil { return err } sc.Parity = s.Parity return nil } // MarshalText - marshals storage class string. func (sc *StorageClass) MarshalText() ([]byte, error) { if sc.Parity != 0 { return []byte(fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)), nil } return []byte{}, nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 11.8K bytes - Viewed (0) -
src/regexp/all_test.go
func TestUnmarshalText(t *testing.T) { unmarshaled := new(Regexp) for i := range goodRe { re := compileTest(t, goodRe[i], "") marshaled, err := re.MarshalText() if err != nil { t.Errorf("regexp %#q failed to marshal: %s", re, err) continue } if err := unmarshaled.UnmarshalText(marshaled); err != nil { t.Errorf("regexp %#q failed to unmarshal: %s", re, err) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor.go
}{ VolumeName: volumeSpecName, UniqueName: string(volume.VolumeName), NodeName: string(volume.NodeName), } } var _ fmt.Stringer = &VolumeToAttach{} var _ logr.Marshaler = &VolumeToAttach{} // VolumeToMount represents a volume that should be attached to this node and // mounted to the PodName. type VolumeToMount struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 42.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/common.go
AllowExperimental bool // SkipCRIDetect indicates whether to skip the CRI socket detection when no CRI socket is provided. SkipCRIDetect bool } // MarshalKubeadmConfigObject marshals an Object registered in the kubeadm scheme. If the object is a InitConfiguration or ClusterConfiguration, some extra logic is run func MarshalKubeadmConfigObject(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 11:04:08 UTC 2024 - 18.1K bytes - Viewed (0)