Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for Interpret (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go

    	factory := SimpleMetaFactory{}
    	gvk, err := factory.Interpret([]byte(`{"apiVersion":"1","kind":"object"}`))
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if gvk.Version != "1" || gvk.Kind != "object" {
    		t.Errorf("unexpected interpret: %#v", gvk)
    	}
    
    	// no kind or version
    	gvk, err = factory.Interpret([]byte(`{}`))
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 21 11:41:40 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go

    )
    
    // MetaFactory is used to store and retrieve the version and kind
    // information for JSON objects in a serializer.
    type MetaFactory interface {
    	// Interpret should return the version and kind of the wire-format of
    	// the object.
    	Interpret(data []byte) (*schema.GroupVersionKind, error)
    }
    
    // DefaultMetaFactory is a default factory for versioning objects in JSON. The object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/suffix.go

    limitations under the License.
    */
    
    package resource
    
    import (
    	"strconv"
    )
    
    type suffix string
    
    // suffixer can interpret and construct suffixes.
    type suffixer interface {
    	interpret(suffix) (base, exponent int32, fmt Format, ok bool)
    	construct(base, exponent int32, fmt Format) (s suffix, ok bool)
    	constructBytes(base, exponent int32, fmt Format) (s []byte, ok bool)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/meta.go

    type SimpleMetaFactory struct{}
    
    // Interpret will return the APIVersion and Kind of the JSON wire-format
    // encoding of an object, or an error.
    func (SimpleMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) {
    	gvk := runtime.TypeMeta{}
    	if err := yaml.Unmarshal(data, &gvk); err != nil {
    		return nil, fmt.Errorf("could not interpret GroupVersionKind; unmarshal error: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 27 09:44:59 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go

    	"github.com/fxamacker/cbor/v2"
    )
    
    type metaFactory interface {
    	// Interpret should return the version and kind of the wire-format of the object.
    	Interpret(data []byte) (*schema.GroupVersionKind, error)
    }
    
    type defaultMetaFactory struct{}
    
    func (mf *defaultMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) {
    	var tm metav1.TypeMeta
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluator.kt

                is Program.Plugins -> optimize(stage1)
                else -> null
            }
    
        private
        fun optimize(program: Program.Plugins): ApplyPluginRequests? =
            when (val interpretation = interpret(program)) {
                is PluginsBlockInterpretation.Static -> {
                    ApplyPluginRequests(interpretation.plugins, program)
                }
    
                is PluginsBlockInterpretation.Dynamic -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. src/internal/trace/raw/doc.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Package raw provides an interface to interpret and emit Go execution traces.
    It can interpret and emit execution traces in its wire format as well as a
    bespoke but simple text format.
    
    The readers and writers in this package perform no validation on or ordering of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/offset_buffer.h

    #include <cstdint>
    
    namespace tflite {
    
    // Check if the model is using custom_option_offset to store custom op
    // buffers. When this field is not explicitly set by the user, then FlatBuffer
    // will omit the field and interpret this as 0, to ensure this field is
    // populated. The flatbuffer exporter will always set it to 1, and it's also not
    // a valid buffer offset value. So it's only valid when it's > 1.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 04 01:07:10 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ParseRequest.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    /** A string to be parsed as a number and the radix to interpret it in. */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class ParseRequest {
      final String rawValue;
      final int radix;
    
      private ParseRequest(String rawValue, int radix) {
        this.rawValue = rawValue;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/gotoolchain_modcmds.txt

    # required by its dependencies, the commands that fetch and diagnose the module
    # graph (such as 'go mod graph' and 'go mod verify') should fail explicitly:
    # they can't interpret the graph themselves, and they aren't allowed to update
    # the go.mod file to record a specific, stable toolchain version that can.
    
    ! go mod verify
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top