Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for checkModel (0.13 sec)

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

    	"k8s.io/apimachinery/pkg/util/json"
    )
    
    // CheckCodec makes sure that the codec can encode objects like internalType,
    // decode all of the external types listed, and also decode them into the given
    // object. (Will modify internalObject.) (Assumes JSON serialization.)
    // TODO: verify that the correct external version is chosen on encode...
    func CheckCodec(c Codec, internalType Object, externalTypes ...schema.GroupVersionKind) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/go/printer/printer_test.go

    var fset = token.NewFileSet()
    
    type checkMode uint
    
    const (
    	export checkMode = 1 << iota
    	rawFormat
    	normNumber
    	idempotent
    	allowTypeParams
    )
    
    // format parses src, prints the corresponding AST, verifies the resulting
    // src is syntactically correct, and returns the resulting src or an error
    // if any.
    func format(src []byte, mode checkMode) ([]byte, error) {
    	// parse src
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. src/testing/fstest/testfs.go

    			}
    		}
    	}
    
    	for _, entry1 := range list1 {
    		old[entry1.Name()] = entry1
    		checkMode(entry1)
    	}
    
    	var diffs []string
    	for _, entry2 := range list2 {
    		entry1 := old[entry2.Name()]
    		if entry1 == nil {
    			checkMode(entry2)
    			diffs = append(diffs, "+ "+formatEntry(entry2))
    			continue
    		}
    		if formatEntry(entry1) != formatEntry(entry2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/preemption/preemption.go

    	violatingCandidates := newCandidateList(numCandidates)
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	nodeStatuses := make(framework.NodeToStatusMap)
    	var statusesLock sync.Mutex
    	var errs []error
    	checkNode := func(i int) {
    		nodeInfoCopy := potentialNodes[(int(offset)+i)%len(potentialNodes)].Snapshot()
    		stateCopy := ev.State.Clone()
    		pods, numPDBViolations, status := ev.SelectVictimsOnNode(ctx, stateCopy, pod, nodeInfoCopy, pdbs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. pkg/scheduler/schedule_one.go

    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    
    	type nodeStatus struct {
    		node   string
    		status *framework.Status
    	}
    	result := make([]*nodeStatus, numAllNodes)
    	checkNode := func(i int) {
    		// We check the nodes starting from where we left off in the previous scheduling cycle,
    		// this is to make sure all nodes have the same chance of being examined across pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  6. src/os/os_test.go

    		t.Fatalf("chmod %s %#o: %s", f.Name(), fm, err)
    	}
    	checkMode(t, f.Name(), fm)
    
    	fm = FileMode(0123)
    	if runtime.GOOS == "windows" {
    		fm = FileMode(0666) // read-write file
    	}
    	if err := f.Chmod(fm); err != nil {
    		t.Fatalf("chmod %s %#o: %s", f.Name(), fm, err)
    	}
    	checkMode(t, f.Name(), fm)
    }
    
    func checkSize(t *testing.T, f *File, size int64) {
    	t.Helper()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	stopCh := make(chan struct{})
    	obj := config.NewFunc()
    	// Give this error when it is constructed rather than when you get the
    	// first watch item, because it's much easier to track down that way.
    	if err := runtime.CheckCodec(config.Codec, obj); err != nil {
    		return nil, fmt.Errorf("storage codec doesn't seem to match given type: %v", err)
    	}
    
    	var indexedTrigger *indexedTriggerFunc
    	if config.IndexerFuncs != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top