Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,508 for encodeTo (0.27 sec)

  1. staging/src/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

    // encodes objects to when persisting objects in the backend.
    message ServerStorageVersion {
      // The ID of the reporting API server.
      optional string apiServerID = 1;
    
      // The API server encodes the object to this version when persisting it in
      // the backend (e.g., etcd).
      optional string encodingVersion = 2;
    
      // The API server can decode objects encoded in these versions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

    // encodes objects to when persisting objects in the backend.
    message ServerStorageVersion {
      // The ID of the reporting API server.
      optional string apiServerID = 1;
    
      // The API server encodes the object to this version when persisting it in
      // the backend (e.g., etcd).
      optional string encodingVersion = 2;
    
      // The API server can decode objects encoded in these versions.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/delmarker-expiration.go

    		return err
    	}
    
    	if dexp.Days <= 0 {
    		return errInvalidDaysDelMarkerExpiration
    	}
    
    	*de = DelMarkerExpiration(dexp)
    	return nil
    }
    
    // MarshalXML encodes a DelMarkerExpiration value into an XML element
    func (de DelMarkerExpiration) MarshalXML(enc *xml.Encoder, start xml.StartElement) error {
    	if de.Empty() {
    		return nil
    	}
    
    	type delMarkerExpiration DelMarkerExpiration
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/apiserverinternal/v1alpha1/types.go

    }
    
    // An API server instance reports the version it can decode and the version it
    // encodes objects to when persisting objects in the backend.
    type ServerStorageVersion struct {
    	// The ID of the reporting API server.
    	APIServerID string `json:"apiServerID,omitempty" protobuf:"bytes,1,opt,name=apiServerID"`
    
    	// The API server encodes the object to this version when persisting it in
    	// the backend (e.g., etcd).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:37 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/riscv/obj.go

    	bEncoding = encoding{encode: encodeB, validate: validateB, length: 4}
    	uEncoding = encoding{encode: encodeU, validate: validateU, length: 4}
    	jEncoding = encoding{encode: encodeJ, validate: validateJ, length: 4}
    
    	// rawEncoding encodes a raw instruction byte sequence.
    	rawEncoding = encoding{encode: encodeRawIns, validate: validateRaw, length: 4}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

            return new ArrayOfPrimitiveValueSnapshot(primitiveType, primitiveType.decode(decoder));
        }
    
        public void encode(Encoder encoder) throws IOException {
            encoder.writeByte(getPrimitiveTypeCode());
            primitiveType.encode(encoder, array);
        }
    
        @Override
        public int hashCode() {
            return primitiveType.hashCode(array);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go

    		list.Items = append(list.Items, *unstruct)
    	}
    	return nil
    }
    
    type jsonFallbackEncoder struct {
    	encoder    runtime.Encoder
    	identifier runtime.Identifier
    }
    
    func NewJSONFallbackEncoder(encoder runtime.Encoder) runtime.Encoder {
    	result := map[string]string{
    		"name": "fallback",
    		"base": string(encoder.Identifier()),
    	}
    	identifier, err := gojson.Marshal(result)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 20:39:55 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/encoder.md

        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/encoder.md

    같은 방식으로 이 데이터베이스는 Pydantic 모델(속성이 있는 객체)을 받지 않고, `dict` 만을 받습니다.
    
    이를 위해 `jsonable_encoder` 를 사용할 수 있습니다.
    
    Pydantic 모델과 같은 객체를 받고 JSON 호환 가능한 버전으로 반환합니다:
    
    ```Python hl_lines="5  22"
    {!../../../docs_src/encoder/tutorial001.py!}
    ```
    
    이 예시는 Pydantic 모델을 `dict`로, `datetime` 형식을 `str`로 변환합니다.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Dec 08 15:43:31 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top