Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MediaTypeType (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go

    type SerializerInfo struct {
    	// MediaType is the value that represents this serializer over the wire.
    	MediaType string
    	// MediaTypeType is the first part of the MediaType ("application" in "application/json").
    	MediaTypeType string
    	// MediaTypeSubType is the second part of the MediaType ("json" in "application/json").
    	MediaTypeSubType string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go

    				StrictSerializer: d.StrictSerializer,
    			}
    
    			mediaType, _, err := mime.ParseMediaType(info.MediaType)
    			if err != nil {
    				panic(err)
    			}
    			parts := strings.SplitN(mediaType, "/", 2)
    			info.MediaTypeType = parts[0]
    			info.MediaTypeSubType = parts[1]
    
    			if d.StreamSerializer != nil {
    				info.StreamSerializer = &runtime.StreamSerializerInfo{
    					Serializer:    d.StreamSerializer,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    	if gvk == nil {
    		if len(scope.StandardSerializers) == 0 {
    			return true
    		}
    		for _, info := range scope.StandardSerializers {
    			if info.MediaTypeType == mimeType && info.MediaTypeSubType == mimeSubType {
    				return true
    			}
    		}
    		return false
    	}
    
    	// TODO: this is temporary, replace with an abstraction calculated at endpoint installation time
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top