Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for newCounter (0.29 sec)

  1. pkg/volume/git_repo/git_repo_test.go

    	if err != nil {
    		allErrs = append(allErrs,
    			fmt.Errorf("can't find the plugin by name"))
    		return allErrs
    	}
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.NewMounter(volume.NewSpecFromVolume(scenario.vol), pod, volume.VolumeOptions{})
    
    	if err != nil {
    		allErrs = append(allErrs,
    			fmt.Errorf("failed to make a new Mounter: %w", err))
    		return allErrs
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. 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)
  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/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)
  6. 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)
  7. 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)
  8. pilot/pkg/config/kube/gateway/controller.go

    		namespaces:            namespaces,
    		credentialsController: credsController,
    		cluster:               options.ClusterID,
    		domain:                options.DomainSuffix,
    		statusController:      atomic.NewPointer(ctl),
    		waitForCRD:            waitForCRD,
    	}
    
    	namespaces.AddEventHandler(controllers.EventHandler[*corev1.Namespace]{
    		UpdateFunc: func(oldNs, newNs *corev1.Namespace) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. 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)
  10. cmd/admin-handlers_test.go

    	initAllSubsystems(ctx)
    
    	initConfigSubsystem(ctx, objLayer)
    
    	globalIAMSys.Init(ctx, objLayer, globalEtcdClient, 2*time.Second)
    
    	// Setup admin mgmt REST API handlers.
    	adminRouter := mux.NewRouter()
    	registerAdminRouter(adminRouter, true)
    
    	return &adminErasureTestBed{
    		erasureDirs: erasureDirs,
    		objLayer:    objLayer,
    		router:      adminRouter,
    		done:        cancel,
    	}, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top