- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ApplyJSON (0.12 sec)
-
pkg/config/model.go
return d.Decode(&s) } func ApplyJSON(s Spec, js string) error { // golang protobuf. Use protoreflect.ProtoMessage to distinguish from gogo // golang/protobuf 1.4+ will have this interface. Older golang/protobuf are gogo compatible // but also not used by Istio at all. if _, ok := s.(protoreflect.ProtoMessage); ok { if pb, ok := s.(proto.Message); ok { err := protomarshal.ApplyJSON(js, pb) return err } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 12.6K bytes - Viewed (0) -
pkg/config/mesh/mesh.go
func DeepCopyMeshConfig(mc *meshconfig.MeshConfig) (*meshconfig.MeshConfig, error) { j, err := protomarshal.ToJSON(mc) if err != nil { return nil, err } nmc := &meshconfig.MeshConfig{} if err := protomarshal.ApplyJSON(j, nmc); err != nil { return nil, err } return nmc, nil } // EmptyMeshNetworks configuration with no networks func EmptyMeshNetworks() meshconfig.MeshNetworks { return meshconfig.MeshNetworks{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 12K bytes - Viewed (0)