Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for asSlice (0.17 sec)

  1. pkg/controller/volume/pvprotection/pv_protection_controller.go

    	corelisters "k8s.io/client-go/listers/core/v1"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/client-go/util/workqueue"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/controller/volume/protectionutil"
    	"k8s.io/kubernetes/pkg/util/slice"
    	volumeutil "k8s.io/kubernetes/pkg/volume/util"
    )
    
    // Controller is controller that removes PVProtectionFinalizer
    // from PVs that are not bound to PVCs.
    type Controller struct {
    	client clientset.Interface
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. docs/iam/identity-manager-plugin.go

    	MaxValiditySeconds int                    `json:"maxValiditySeconds"`
    	Claims             map[string]interface{} `json:"claims"`
    }
    
    var tokens map[string]Resp = map[string]Resp{
    	"aaa": {
    		User:               "Alice",
    		MaxValiditySeconds: 3600,
    		Claims: map[string]interface{}{
    			"groups": []string{"data-science"},
    		},
    	},
    	"bbb": {
    		User:               "Bart",
    		MaxValiditySeconds: 3600,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 21:31:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/internal/zstd/window.go

    // license that can be found in the LICENSE file.
    
    package zstd
    
    // window stores up to size bytes of data.
    // It is implemented as a circular buffer:
    // sequential save calls append to the data slice until
    // its length reaches configured size and after that,
    // save calls overwrite previously saved data at off
    // and update off such that it always points at
    // the byte stored before others.
    type window struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:49:23 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/syscall/dirent.go

    	}
    }
    
    // ParseDirent parses up to max directory entries in buf,
    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tf_tfl_translate_cl.cc

        llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    opt<bool> enable_dynamic_update_slice(
        "enable-dynamic-update-slice",
        llvm::cl::desc("Whether to enable dynamic update slice op to convert "
                       "TensorListSetItem op."),
        llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    opt<bool> import_hlo("import-hlo",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. internal/store/queuestore.go

    func (store *QueueStore[_]) List() ([]string, error) {
    	store.RLock()
    	l := make([]string, 0, len(store.entries))
    	for k := range store.entries {
    		l = append(l, k)
    	}
    
    	// Sort entries...
    	sort.Slice(l, func(i, j int) bool {
    		return store.entries[l[i]] < store.entries[l[j]]
    	})
    	store.RUnlock()
    
    	return l, nil
    }
    
    // list will read all entries from disk.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    func (g sortableSliceOfGeneric[T]) Less(i, j int) bool { return less[T](g[i], g[j]) }
    func (g sortableSliceOfGeneric[T]) Swap(i, j int)      { g[i], g[j] = g[j], g[i] }
    
    // List returns the contents as a sorted T slice.
    //
    // This is a separate function and not a method because not all types supported
    // by Generic are ordered and only those can be sorted.
    func List[T cmp.Ordered](s Set[T]) []T {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

      // Move all inner ops of the launch to the block containing the launch.
      auto body = launch.GetBody().without_terminator();
      Operation* launch_op = launch.getOperation();
      launch_op->getBlock()->getOperations().splice(
          launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(),
          body.end());
    
      launch.erase();
    
      return success();
    }
    
    void LaunchToDeviceAttributePass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescValueParameterSymbol.kt

                        // Implicit lambda parameter doesn't have a source PSI.
                        descriptor.source.getPsi() == null &&
                        // But, that could be the case for a declaration from Library. Double-check the slice in the binding context
                        (descriptor.containingDeclaration.source.getPsi() as? KtFunctionLiteral)?.let { parentLambda ->
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. pilot/test/xdstest/endpoints.go

    	if len(got) != len(want) {
    		return fmt.Errorf("unexpected number of filtered endpoints for %s: got %v, want %v", cluster, len(got), len(want))
    	}
    
    	sort.Slice(got, func(i, j int) bool {
    		addrI := util.GetEndpointHost(got[i].LbEndpoints[0])
    		addrJ := util.GetEndpointHost(got[j].LbEndpoints[0])
    		return addrI < addrJ
    	})
    
    	for i, ep := range got {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top