- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for RawMessage (0.31 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/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) -
pkg/test/echo/server/endpoint/grpcbootstrap.go
PrivateKeyFile string `json:"private_key_file,omitempty"` CACertificateFile string `json:"ca_certificate_file,omitempty"` RefreshDuration json.RawMessage `json:"refresh_interval,omitempty"` } // FileWatcherProvider returns the FileWatcherCertProviderConfig if one exists in CertProviders func (b *Bootstrap) FileWatcherProvider() *FileWatcherCertProviderConfig {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 06 23:16:02 UTC 2023 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/framer/framer.go
data = append(data[0:0], r.remaining[:n]...) r.remaining = r.remaining[n:] return n, io.ErrShortBuffer } // RawMessage#Unmarshal appends to data - we reset the slice down to 0 and will either see // data written to data, or be larger than data and a different array. m := json.RawMessage(data[:0]) if err := r.decoder.Decode(&m); err != nil { return 0, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 13:33:12 UTC 2024 - 4.9K bytes - Viewed (0)