- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 205 for marshaled (0.28 sec)
-
pkg/kubelet/cm/dra/state/state_checkpoint_test.go
checkpoint := NewDRAManagerCheckpoint() cpm.GetCheckpoint(testingCheckpoint, checkpoint) checkpointData, err := checkpoint.MarshalCheckpoint() assert.NoError(t, err, "could not Marshal Checkpoint") assert.Equal(t, expectedCheckpoint, string(checkpointData), "expected ClaimInfoState does not equal to restored one") // NewCheckpointState with an empty checkpointName should return an error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 11.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch_test.go
y, err := jsonToYAML(j) if err != nil { return err.Error() } return string(y) } func toJSON(v interface{}) ([]byte, error) { j, err := json.Marshal(v) if err != nil { return nil, fmt.Errorf("json marshal failed: %v\n%v\n", err, dump.Pretty(v)) } return j, nil } func jsonToYAML(j []byte) ([]byte, error) { y, err := yaml.JSONToYAML(j) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 14.8K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1beta1/generated.pb.go
} func (m *AdmissionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AdmissionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 46.1K bytes - Viewed (0) -
cluster/gce/windows/common.psm1
$err = [System.Runtime.InteropServices.Marshal]::GetLastWin32Error() if ($ret -eq $INVALID_SET_FILE_POINTER -and $err -ne $NO_ERROR) { Close-Handle -Handle $handle throw "Failed to set file pointer for handle ${handle}, system error code: ${err}" } $ret = $Kernel32::SetEndOfFile($handle) $err = [System.Runtime.InteropServices.Marshal]::GetLastWin32Error() if ($ret -eq 0) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 19 14:47:38 UTC 2022 - 25.4K bytes - Viewed (0) -
internal/jwt/parser.go
func (c *MapClaims) Map() map[string]interface{} { if c == nil { return nil } return c.MapClaims } // MarshalJSON marshals the MapClaims struct func (c *MapClaims) MarshalJSON() ([]byte, error) { json := jsoniter.ConfigCompatibleWithStandardLibrary return json.Marshal(c.MapClaims) } // ParseWithStandardClaims - parse the token string, valid methods.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 09 07:53:08 UTC 2023 - 13.9K bytes - Viewed (0) -
internal/config/cache/remote_gen.go
if err != nil { return } err = en.WriteInt(z.IfPartNumber) if err != nil { err = msgp.WrapError(err, "IfPartNumber") return } return } // MarshalMsg implements msgp.Marshaler func (z *CondCheck) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 7 // string "ObjectInfo"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Nov 22 21:46:17 UTC 2023 - 18.9K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor.go
}{ VolumeName: volumeSpecName, UniqueName: string(volume.VolumeName), NodeName: string(volume.NodeName), } } var _ fmt.Stringer = &VolumeToAttach{} var _ logr.Marshaler = &VolumeToAttach{} // VolumeToMount represents a volume that should be attached to this node and // mounted to the PodName. type VolumeToMount struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 42.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
result := map[string]string{ "name": "json", "yaml": strconv.FormatBool(options.Yaml), "pretty": strconv.FormatBool(options.Pretty), "strict": strconv.FormatBool(options.Strict), } identifier, err := json.Marshal(result) if err != nil { klog.Fatalf("Failed marshaling identifier for json Serializer: %v", err) } return runtime.Identifier(identifier) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 25 16:08:07 UTC 2022 - 12K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
t.Fatalf("failed to apply object: %v", err) } // ensure that the live object is unchanged if !reflect.DeepEqual(originalManagedFields, f.ManagedFields()) { originalYAML, _ := yaml.Marshal(originalManagedFields) current, _ := yaml.Marshal(f.ManagedFields()) // should have been a no-op w.r.t. managed fields t.Fatalf("managed fields changed: ORIGINAL\n%v\nCURRENT\n%v", string(originalYAML), string(current)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
}, Spec: data, }, nil } // TODO(nmittler): Remove this once Pilot migrates to galley schema. func fromSchemaAndJSONMap(schema resource.Schema, data any) (config.Spec, error) { // Marshal to json bytes str, err := json.Marshal(data) if err != nil { return nil, err } out, err := schema.NewInstance() if err != nil { return nil, err } if err = config.ApplyJSONStrict(out, string(str)); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 22 17:58:52 UTC 2024 - 15K bytes - Viewed (0)