mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Modify Attach method to return device path
This commit is contained in:
@@ -134,8 +134,10 @@ type Deleter interface {
|
||||
|
||||
// Attacher can attach a volume to a node.
|
||||
type Attacher interface {
|
||||
// Attach the volume specified by the given spec to the given host
|
||||
Attach(spec *Spec, hostName string) error
|
||||
// Attaches the volume specified by the given spec to the given host.
|
||||
// On success, returns the device path where the device was attache don the
|
||||
// node.
|
||||
Attach(spec *Spec, hostName string) (string, error)
|
||||
|
||||
// WaitForAttach blocks until the device is attached to this
|
||||
// node. If it successfully attaches, the path to the device
|
||||
|
||||
Reference in New Issue
Block a user