Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 363 for RES (0.09 sec)

  1. internal/s3select/sql/funceval.go

    			err := fmt.Errorf("Negative length argument in %s", sqlFnSubstring)
    			return nil, errIncorrectSQLFunctionArgumentType(err)
    		}
    	}
    
    	res, err := evalSQLSubstring(s, int(startIdx), length)
    	return FromString(res), err
    }
    
    func handleSQLTrim(r Record, e *TrimFunc, tableAlias string) (res *Value, err error) {
    	chars := ""
    	ok := false
    	if e.TrimChars != nil {
    		charsV, cerr := e.TrimChars.evalNode(r, tableAlias)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    	}
    
    	for _, obj := range initialObjects {
    		err := res.updateOne(obj)
    		if err != nil {
    			testCancel()
    			return nil, nil, err
    		}
    	}
    
    	res.Start = func() error {
    		fakeInformerFactory.Start(res.Done())
    		go policyInformer.Run(res.Done())
    		go bindingInformer.Run(res.Done())
    
    		if !cache.WaitForCacheSync(res.Done(), res.Source.HasSynced) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/sds/sdsservice_test.go

    	})
    	t.Run("unsubscribe", func(t *testing.T) {
    		s := setupSDS(t)
    		c := s.Connect()
    		res := c.RequestResponseAck(t, &discovery.DiscoveryRequest{ResourceNames: []string{testResourceName}})
    		s.Verify(res, expectCert)
    		c.Request(t, &discovery.DiscoveryRequest{
    			ResourceNames: nil,
    			ResponseNonce: res.Nonce,
    			VersionInfo:   res.VersionInfo,
    		})
    		c.ExpectNoResponse(t)
    	})
    	t.Run("nack", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    			w.CanonicalName, w.CanonicalRevision = kubelabels.CanonicalService(se.Labels, w.WorkloadName)
    
    			setTunnelProtocol(se.Labels, se.Annotations, w)
    			res = append(res, model.WorkloadInfo{Workload: w, Labels: se.Labels, Source: kind.WorkloadEntry, CreationTime: se.CreationTimestamp.Time})
    		}
    		return res
    	}
    }
    
    func setTunnelProtocol(labels, annotations map[string]string, w *workloadapi.Workload) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pkg/kube/krt/README.md

    Consider a transformation from `Pod` to `SimplePod`:
    
    ```go
    SimplePods := krt.NewSingleton[SimplePod](func(ctx krt.HandlerContext) *[]SimplePod {
        res := []SimplePod{}
        for _, pod := range krt.Fetch(ctx, Pod) {
            res = append(res, SimplePod{Name: pod.Name})
        }
        return &res
    }) // Results in a Collection[[]SimplePod]
    ```
    
    While this *works*, it is inefficient and complex to write.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc

      bool IsQuantizableResult(Operation *op, int index) {
        if (index < 0 || index >= static_cast<int>(op->getNumResults()))
          return false;
        Value res = op->getResult(index);
        return res.getType().isa<ShapedType>() &&
               res.getType().cast<ShapedType>().getElementType().isa<FloatType>();
      }
    
      // A method to retrieve the name for the given op.
      OperationToName op_to_name_;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

                                                bool* changed = nullptr) {
      auto res = result->AddResourceDevice(resource, device, changed);
      if (failed(res)) {
        error_reporting_op->emitError()
            << "Conflicting device assignment for resource";
      }
      return res;
    }
    
    // Extracts and canonicalizes the device attribute.
    inline StringRef GetDeviceAttr(func::FuncOp func, int arg_no) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. pkg/kube/kclient/client.go

    	var res []T
    	err := cache.ListAllByNamespace(n.informer.GetIndexer(), namespace, selector, func(i any) {
    		cast := i.(T)
    		if n.applyFilter(cast) {
    			res = append(res, cast)
    		}
    	})
    
    	// Should never happen
    	if err != nil && features.EnableUnsafeAssertions {
    		log.Fatalf("lister returned err for %v: %v", namespace, err)
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	default:
    		if wc.acceptAll() {
    			res = &watch.Event{
    				Type:   watch.Modified,
    				Object: curObj,
    			}
    			return res
    		}
    		curObjPasses := wc.filter(curObj)
    		oldObjPasses := wc.filter(oldObj)
    		switch {
    		case curObjPasses && oldObjPasses:
    			res = &watch.Event{
    				Type:   watch.Modified,
    				Object: curObj,
    			}
    		case curObjPasses && !oldObjPasses:
    			res = &watch.Event{
    				Type:   watch.Added,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/podcgroupns.go

    		// plus we want to return whatever we can to the user.
    		res, err := p.processEntry(p.proc, netnsObserved, desiredUIDs, entry)
    		if err != nil {
    			log.Debugf("error processing entry: %s %v", entry.Name(), err)
    			continue
    		}
    		if res == nil {
    			continue
    		}
    		pod := pods[res.uid]
    		netns := &NetnsWithFd{
    			netns: res.netns,
    			fd:    res.netnsfd,
    			inode: res.inode,
    		}
    		workload := WorkloadInfo{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top