Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for NewAttacher (0.57 sec)

  1. pkg/volume/csi/csi_test.go

    			}
    
    			var devicePath string
    			if attachPlug != nil {
    				t.Log("csiTest.VolumeAll attacher.Attach starting")
    
    				var volAttacher volume.Attacher
    
    				volAttacher, err := attachPlug.NewAttacher()
    				if err != nil {
    					t.Fatal("csiTest.VolumeAll failed to create new attacher: ", err)
    				}
    
    				// creates VolumeAttachment and blocks until it is marked attached (done by external attacher)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  2. pkg/volume/util/util.go

    	attachableVolumePlugin, _ := volumePluginMgr.FindAttachablePluginBySpec(volumeSpec)
    	if attachableVolumePlugin != nil {
    		volumeAttacher, err := attachableVolumePlugin.NewAttacher()
    		if err == nil && volumeAttacher != nil {
    			return true
    		}
    	}
    
    	return false
    }
    
    // IsDeviceMountableVolume checks if the given volumeSpec is an device mountable volume or not
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  3. pkg/volume/plugins.go

    // AttachableVolumePlugin is an extended interface of VolumePlugin and is used for volumes that require attachment
    // to a node before mounting.
    type AttachableVolumePlugin interface {
    	DeviceMountableVolumePlugin
    	NewAttacher() (Attacher, error)
    	NewDetacher() (Detacher, error)
    	// CanAttach tests if provided volume spec is attachable
    	CanAttach(spec *Spec) (bool, 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)
  4. pkg/volume/csi/csi_plugin_test.go

    		t.Errorf("mounter csiClient is nil: %v", err)
    	}
    }
    
    func TestPluginNewAttacher(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	attacher, err := plug.NewAttacher()
    	if err != nil {
    		t.Fatalf("failed to create new attacher: %v", err)
    	}
    
    	csiAttacher := getCsiAttacherFromVolumeAttacher(attacher, testWatchTimeout)
    	if csiAttacher.plugin == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top