Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 135 for marshaled (1.39 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go

    }
    
    func (m *PartialObjectMetadataList) 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 *PartialObjectMetadataList) 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
    - 11K bytes
    - Viewed (0)
  2. cmd/metacache-set_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.set)
    	if err != nil {
    		err = msgp.WrapError(err, "set")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *listPathOptions) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 19
    	// string "ID"
    	o = append(o, 0xde, 0x0, 0x13, 0xa2, 0x49, 0x44)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 19 20:23:12 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class.go

    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    	}
    	sc.Parity = s.Parity
    	return nil
    }
    
    // MarshalText - marshals storage class string.
    func (sc *StorageClass) MarshalText() ([]byte, error) {
    	if sc.Parity != 0 {
    		return []byte(fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)), nil
    	}
    	return []byte{}, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. cmd/admin-heal-ops.go

    		for !he.hasEnded() {
    			time.Sleep(1 * time.Second)
    		}
    		ahs.Lock()
    		defer ahs.Unlock()
    		// Heal sequence explicitly stopped, remove it.
    		delete(ahs.healSeqMap, path)
    	}
    
    	b, err := json.Marshal(&hsp)
    	return b, toAdminAPIErr(GlobalContext, err)
    }
    
    // LaunchNewHealSequence - launches a background routine that performs
    // healing according to the healSequence argument. For each heal
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 18:04:41 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    	key := "validation.policy.admission.k8s.io/validation_failure"
    	// Marshal to a list of failures since, in the future, we may need to support multiple failures
    	valueJSON, err := utiljson.Marshal([]ValidationFailureValue{{
    		ExpressionIndex:   expressionIndex,
    		Message:           decision.Message,
    		ValidationActions: binding.Spec.ValidationActions,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. cmd/xl-storage-format_test.go

    		xlMeta.AddTestObjectPart(i+1, 67108864)
    	}
    	return xlMeta
    }
    
    // Compare the unmarshaled XLMetaV1 with the one obtained from jsoniter parsing.
    func compareXLMetaV1(t *testing.T, unMarshalXLMeta, jsoniterXLMeta xlMetaV1Object) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top