Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 115 for newCounter (0.3 sec)

  1. pkg/kubelet/kubelet_volumes.go

    	plugin, err := kl.volumePluginMgr.FindPluginBySpec(spec)
    	if err != nil {
    		return nil, fmt.Errorf("can't use volume plugins for %s: %v", spec.Name(), err)
    	}
    	physicalMounter, err := plugin.NewMounter(spec, pod, opts)
    	if err != nil {
    		return nil, fmt.Errorf("failed to instantiate mounter for volume: %s using plugin: %s with a root cause: %v", spec.Name(), plugin.GetPluginName(), err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. internal/dsync/dsync-server_test.go

    		lsrv := &lockServer{
    			mutex:   sync.Mutex{},
    			lockMap: make(map[string]int64),
    		}
    		lockServer := lockServerHandler{
    			lsrv: lsrv,
    		}
    		lockServers[i] = lsrv
    
    		router := mux.NewRouter().SkipClean(true)
    		subrouter := router.PathPrefix("/").Subrouter()
    		subrouter.Methods(http.MethodPost).Path("/v1/health").HandlerFunc(lockServer.HealthHandler)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. pkg/volume/portworx/portworx.go

    func (plugin *portworxVolumePlugin) GetAccessModes() []v1.PersistentVolumeAccessMode {
    	return []v1.PersistentVolumeAccessMode{
    		v1.ReadWriteOnce,
    		v1.ReadWriteMany,
    	}
    }
    
    func (plugin *portworxVolumePlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.Mounter, error) {
    	return plugin.newMounterInternal(spec, pod.UID, plugin.util, plugin.host.GetMounter(plugin.GetPluginName()))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. pkg/volume/projected/projected.go

    	return false
    }
    
    func (plugin *projectedPlugin) SupportsSELinuxContextMount(spec *volume.Spec) (bool, error) {
    	return false, nil
    }
    
    func (plugin *projectedPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) {
    	return &projectedVolumeMounter{
    		projectedVolume: &projectedVolume{
    			volName:         spec.Name(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/go/types/example_test.go

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Print the method sets of Celsius and *Celsius.
    	celsius := pkg.Scope().Lookup("Celsius").Type()
    	for _, t := range []types.Type{celsius, types.NewPointer(celsius)} {
    		fmt.Printf("Method set of %s:\n", t)
    		mset := types.NewMethodSet(t)
    		for i := 0; i < mset.Len(); i++ {
    			fmt.Println(mset.At(i))
    		}
    		fmt.Println()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/iscsi_test.go

    	spec := volume.NewSpecFromPersistentVolume(pv, true)
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, _ := plug.NewMounter(spec, pod, volume.VolumeOptions{})
    	if mounter == nil {
    		t.Fatalf("Got a nil Mounter")
    	}
    
    	if !mounter.GetAttributes().ReadOnly {
    		t.Errorf("Expected true for mounter.IsReadOnly")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/test/mockopenidserver.go

    		TLSKeyFile:  tlsKey,
    	}
    
    	return server, server.Start()
    }
    
    // Start starts the mock server.
    func (ms *MockOpenIDDiscoveryServer) Start() error {
    	var handler http.Handler
    	router := mux.NewRouter()
    	router.HandleFunc("/.well-known/openid-configuration", ms.openIDCfg).Methods("GET")
    	router.HandleFunc("/oauth2/v3/certs", ms.jwtPubKey).Methods("GET")
    	handler = router
    	if ms.timeout != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		return nil
    	}
    
    	// We're looking for cases in which a pointer to this type
    	// is a sync.Locker, but a value is not. This differentiates
    	// embedded interfaces from embedded values.
    	if types.Implements(types.NewPointer(typ), lockerType) && !types.Implements(typ, lockerType) {
    		return []string{typ.String()}
    	}
    
    	// In go1.10, sync.noCopy did not implement Locker.
    	// (The Unlock method was added only in CL 121876.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. pkg/volume/fc/fc_test.go

    	spec := volume.NewSpecFromPersistentVolume(pv, true)
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, _ := plug.NewMounter(spec, pod, volume.VolumeOptions{})
    	if mounter == nil {
    		t.Fatalf("Got a nil Mounter")
    	}
    
    	if !mounter.GetAttributes().ReadOnly {
    		t.Errorf("Expected true for mounter.IsReadOnly")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	if spec == nil {
    		plugin.ErrorEncountered = true
    	}
    	return true
    }
    
    func (plugin *TestPlugin) RequiresRemount(spec *volume.Spec) bool {
    	return false
    }
    
    func (plugin *TestPlugin) NewMounter(spec *volume.Spec, podRef *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) {
    	plugin.pluginLock.Lock()
    	defer plugin.pluginLock.Unlock()
    	if spec == nil {
    		plugin.ErrorEncountered = true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top