- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for RawMessage (0.27 sec)
-
pilot/pkg/config/kube/crd/config.go
metav1.TypeMeta metav1.ObjectMeta `json:"metadata"` Spec json.RawMessage `json:"spec"` Status *json.RawMessage `json:"status,omitempty"` } // GetSpec from a wrapper func (in *IstioKind) GetSpec() json.RawMessage { return in.Spec } // GetStatus from a wrapper func (in *IstioKind) GetStatus() *json.RawMessage { return in.Status } // GetObjectMeta from a wrapper
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 2.2K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/configdump.go
Stdout io.Writer ztunnelDump *ZtunnelDump FullDump []byte } type rawDump struct { Services json.RawMessage `json:"services"` Workloads json.RawMessage `json:"workloads"` Policies json.RawMessage `json:"policies"` Certificates json.RawMessage `json:"certificates"` WorkloadState map[string]WorkloadState `json:"workloadstate"` }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 3.9K bytes - Viewed (0) -
src/net/rpc/jsonrpc/server.go
Params *json.RawMessage `json:"params"` Id *json.RawMessage `json:"id"` } func (r *serverRequest) reset() { r.Method = "" r.Params = nil r.Id = nil } type serverResponse struct { Id *json.RawMessage `json:"id"` Result any `json:"result"` Error any `json:"error"` } func (c *serverCodec) ReadRequestHeader(r *rpc.Request) error { c.req.reset()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
src/encoding/json/encode_test.go
} func TestMarshalRawMessageValue(t *testing.T) { type ( T1 struct { M RawMessage `json:",omitempty"` } T2 struct { M *RawMessage `json:",omitempty"` } ) var ( rawNil = RawMessage(nil) rawEmpty = RawMessage([]byte{}) rawText = RawMessage([]byte(`"foo"`)) ) tests := []struct { CaseName in any want string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
src/encoding/json/example_test.go
fmt.Println(c.Space, dst) } // Output: // YCbCr &{255 0 -10} // RGB &{98 218 255} } // This example uses RawMessage to use a precomputed JSON during marshal. func ExampleRawMessage_marshal() { h := json.RawMessage(`{"precomputed": true}`) c := struct { Header *json.RawMessage `json:"header"` Body string `json:"body"` }{Header: &h, Body: "Hello Gophers!"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
src/encoding/json/stream.go
} // UnmarshalJSON sets *m to a copy of data. func (m *RawMessage) UnmarshalJSON(data []byte) error { if m == nil { return errors.New("json.RawMessage: UnmarshalJSON on nil pointer") } *m = append((*m)[0:0], data...) return nil } var _ Marshaler = (*RawMessage)(nil) var _ Unmarshaler = (*RawMessage)(nil) // A Token holds a value of one of these types: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/pathelement.go
switch { case pe.FieldName != nil: return Field + Separator + *pe.FieldName, nil case pe.Key != nil: kv := map[string]json.RawMessage{} for _, k := range *pe.Key { b, err := value.ToJSON(k.Value) if err != nil { return "", err } m := json.RawMessage{} err = json.Unmarshal(b, &m) if err != nil { return "", err } kv[k.Name] = m } b, err := json.Marshal(kv)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.3K bytes - Viewed (0) -
pilot/pkg/config/kube/crd/config_test.go
"istio.io/istio/pkg/ptr" ) func TestKind(t *testing.T) { obj := crd.IstioKind{} spec := json.RawMessage(`{"a":"b"}`) obj.Spec = spec if got := obj.GetSpec(); !reflect.DeepEqual(spec, got) { t.Errorf("GetSpec() => got %v, want %v", got, spec) } status := ptr.Of(json.RawMessage(`{"c":"d"}`)) obj.Status = status if got := obj.GetStatus(); !reflect.DeepEqual(status, got) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue18676/dynamodbstreamsevt/definition.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package dynamodbstreamsevt import "encoding/json" var foo json.RawMessage type Event struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 285 bytes - Viewed (0) -
src/go/internal/gcimporter/testdata/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Input for TestIssue13566 package a import "encoding/json" type A struct { a *A json json.RawMessage
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 06 18:19:53 UTC 2016 - 273 bytes - Viewed (0)