Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for newCounter (0.17 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/volume/testing/volume_host.go

    	if spec.Volume != nil {
    		spec.Volume.Name = wrapperVolumeName
    	}
    	plug, err := f.pluginMgr.FindPluginBySpec(&spec)
    	if err != nil {
    		return nil, err
    	}
    	return plug.NewMounter(&spec, pod, opts)
    }
    
    func (f *fakeVolumeHost) NewWrapperUnmounter(volName string, spec Spec, podUID types.UID) (Unmounter, error) {
    	// The name of wrapper volume is set to "wrapped_{wrapped_volume_name}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. pkg/volume/hostpath/host_path.go

    	return false, nil
    }
    
    func (plugin *hostPathPlugin) GetAccessModes() []v1.PersistentVolumeAccessMode {
    	return []v1.PersistentVolumeAccessMode{
    		v1.ReadWriteOnce,
    	}
    }
    
    func (plugin *hostPathPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) {
    	hostPathVolumeSource, readOnly, err := getVolumeSource(spec)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_generator.go

    		}
    
    		volumeMounter, newMounterErr := volumePlugin.NewMounter(
    			volumeToMount.VolumeSpec,
    			volumeToMount.Pod,
    			volume.VolumeOptions{})
    		if newMounterErr != nil {
    			eventErr, detailedErr := volumeToMount.GenerateError("MountVolume.NewMounter initialization failed", newMounterErr)
    			return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  10. pkg/volume/plugins.go

    	// this to update the contents of the volume.
    	RequiresRemount(spec *Spec) bool
    
    	// NewMounter creates a new volume.Mounter from an API specification.
    	// Ownership of the spec pointer in *not* transferred.
    	// - spec: The v1.Volume spec
    	// - pod: The enclosing pod
    	NewMounter(spec *Spec, podRef *v1.Pod, opts VolumeOptions) (Mounter, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top