- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 270 for marshaling (0.17 sec)
-
pilot/pkg/util/protoconv/protoconv.go
out, err := MessageToAnyWithError(msg) if err != nil { log.Error(fmt.Sprintf("error marshaling Any %s: %v", prototext.Format(msg), err)) return nil } return out } func TypedStructWithFields(typeURL string, fields map[string]interface{}) *anypb.Any { value, err := structpb.NewStruct(fields) if err != nil { log.Error(fmt.Sprintf("error marshaling struct %s: %v", typeURL, err)) } return MessageToAny(&udpa.TypedStruct{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 04:55:40 UTC 2024 - 2.7K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/encoding/binary/60023.md
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:58:26 UTC 2024 - 157 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct/direct.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and // CBOR data, with behavior that is compatible with that of the CBOR serializer. In particular, // types that implement cbor.Marshaler and cbor.Unmarshaler should use these functions.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 1.2K bytes - Viewed (0) -
common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto
// Package-wide variables from generator "generated". option go_package = "k8s.io/apimachinery/pkg/api/resource"; // Quantity is a fixed-point representation of a number. // It provides convenient marshaling/unmarshaling in JSON and YAML, // in addition to String() and AsInt64() accessors. // // The serialization format is: // // ``` // <quantity> ::= <signedNumber><suffix> //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 3.9K bytes - Viewed (0) -
pilot/pkg/model/extensions.go
if plugin.PluginConfig != nil && len(plugin.PluginConfig.Fields) > 0 { cfgJSON, err := protomarshal.ToJSON(plugin.PluginConfig) if err != nil { log.Warnf("wasmplugin %v/%v discarded due to json marshaling error: %s", p.Namespace, p.Name, err) return nil } cfg = protoconv.MessageToAny(&wrapperspb.StringValue{ Value: cfgJSON, }) } u, err := url.Parse(plugin.Url) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 11K bytes - Viewed (0) -
src/encoding/xml/marshal.go
) // Marshal returns the XML encoding of v. // // Marshal handles an array or slice by marshaling each of the elements. // Marshal handles a pointer by marshaling the value it points at or, if the // pointer is nil, by writing nothing. Marshal handles an interface value by // marshaling the value it contains or, if the interface value is nil, by // writing nothing. Marshal handles all other data by writing one or more XML
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
} if len(c.C.XMLName.Space) != 0 { t.Errorf("overidding with empty namespace: after marshaling & unmarshaling, got %s, want empty\n", a.C.XMLName.Space) } } func TestIssue20396(t *testing.T) { var attrError = UnmarshalError("XML syntax error on line 1: expected attribute name in element")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
if err != nil { t.Errorf("Error when marshaling object: %v", err) return } unstr := make(map[string]interface{}) err = json.Unmarshal(data, &unstr) if err != nil { t.Errorf("Error when unmarshaling to unstructured: %v", err) return } data, err = json.Marshal(unstr) if err != nil { t.Errorf("Error when marshaling unstructured: %v", err) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0) -
src/syscall/dir_plan9.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Plan 9 directory marshaling. See intro(5). package syscall import ( "errors" "internal/byteorder" ) var ( ErrShortStat = errors.New("stat buffer too short") ErrBadStat = errors.New("malformed stat buffer") ErrBadName = errors.New("bad character in file name") )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:32:38 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
*/ package v1 import ( "encoding/json" "time" cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct" ) // Time is a wrapper around time.Time which supports correct // marshaling to YAML and JSON. Wrappers are provided for many // of the factory methods that the time package offers. // // +protobuf.options.marshal=false // +protobuf.as=Timestamp
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 5.2K bytes - Viewed (0)