- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 804 for unmarshalV1 (0.16 sec)
-
operator/pkg/apis/istio/common.go
iop := &operator_v1alpha1.IstioOperator{} if allowUnknownField { if err := yaml.Unmarshal([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } else { if err := yaml.UnmarshalStrict([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } return iop, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 23 17:19:38 UTC 2022 - 2K bytes - Viewed (0) -
cmd/batch-job-common-types.go
type BatchJobKV struct { line, col int Key string `yaml:"key" json:"key"` Value string `yaml:"value" json:"value"` } var _ yaml.Unmarshaler = &BatchJobKV{} // UnmarshalYAML - BatchJobKV extends default unmarshal to extract line, col information. func (kv *BatchJobKV) UnmarshalYAML(val *yaml.Node) error { type jobKV BatchJobKV var tmp jobKV err := val.Decode(&tmp) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 7.9K bytes - Viewed (0) -
src/crypto/elliptic/elliptic.go
x.FillBytes(compressed[1:]) return compressed } // unmarshaler is implemented by curves with their own constant-time Unmarshal. // // There isn't an equivalent interface for Marshal/MarshalCompressed because // that doesn't involve any mathematical operations, only FillBytes and Bit. type unmarshaler interface { Unmarshal([]byte) (x, y *big.Int) UnmarshalCompressed([]byte) (x, y *big.Int) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 9K bytes - Viewed (0) -
operator/pkg/util/yaml.go
return protomarshal.ToYAML(val) } // UnmarshalWithJSONPB unmarshals y into out using gogo jsonpb (required for many proto defined structs). func UnmarshalWithJSONPB(y string, out proto.Message, allowUnknownField bool) error { // Treat nothing as nothing. If we called jsonpb.Unmarshaler it would return the same. if y == "" { return nil } jb, err := yaml.YAMLToJSON([]byte(y))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 14 02:41:27 UTC 2023 - 7.2K bytes - Viewed (0) -
src/crypto/tls/handshake_messages_test.go
// have parsable prefixes because the extension // data is optional and the length of the // Finished varies across versions. for j := 0; j < len(marshaled); j++ { if m.unmarshal(marshaled[0:j]) { t.Errorf("#%d unmarshaled a prefix of length %d of %#v", i, j, m1) break } } } } }) } } func TestFuzz(t *testing.T) { rand := rand.New(rand.NewSource(0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 15.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
var p map[string]interface{} if err := json.Unmarshal([]byte(actual), &p); err != nil { t.Errorf("unexpected error unmarshaling patch annotation: %v", err) } if p["configuration"] != tc.config { t.Errorf("unmarshaled configuration doesn't match, want: %s, got: %v", tc.config, p["configuration"]) } if p["webhook"] != tc.webhook {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/config/schema/ast/ast.go
if r.Group == group && r.Kind == kind { return r } } return nil } // UnmarshalJSON implements json.Unmarshaler func (m *Metadata) UnmarshalJSON(data []byte) error { var in struct { Resources []*Resource `json:"resources"` } if err := json.Unmarshal(data, &in); err != nil { return err } m.Resources = in.Resources seen := sets.New[string]() // Process resources.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 3.3K bytes - Viewed (0) -
src/hash/example_test.go
if err != nil { log.Fatal("unable to marshal hash:", err) } second := sha256.New() unmarshaler, ok := second.(encoding.BinaryUnmarshaler) if !ok { log.Fatal("second does not implement encoding.BinaryUnmarshaler") } if err := unmarshaler.UnmarshalBinary(state); err != nil { log.Fatal("unable to unmarshal hash:", err) } first.Write([]byte(input2)) second.Write([]byte(input2))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 04 03:47:34 UTC 2017 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go
"fmt" "io" "strings" "unicode" jsonutil "k8s.io/apimachinery/pkg/util/json" "sigs.k8s.io/yaml" ) // Unmarshal unmarshals the given data // If v is a *map[string]interface{}, *[]interface{}, or *interface{} numbers // are converted to int64 or float64 func Unmarshal(data []byte, v interface{}) error { preserveIntFloat := func(d *json.Decoder) *json.Decoder { d.UseNumber() return d }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct/direct.go
// types that implement cbor.Marshaler and cbor.Unmarshaler should use these functions. package direct import ( "k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes" ) func Marshal(src interface{}) ([]byte, error) { return modes.Encode.Marshal(src) } func Unmarshal(src []byte, dst interface{}) error { return modes.Decode.Unmarshal(src, dst) } func Diagnose(src []byte) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 1.2K bytes - Viewed (0)