Update Attacher/Detacher interfaces.

- Expand arguments for Attach/Detach interfaces
- Run waitForDetach asynchronously
This commit is contained in:
Sami Wagiaalla
2016-02-19 16:25:01 -05:00
parent fe135fc251
commit 5258392e6a
6 changed files with 20 additions and 26 deletions

View File

@@ -131,8 +131,8 @@ type ProvisionableVolumePlugin interface {
// to a node before mounting.
type AttachableVolumePlugin interface {
VolumePlugin
NewAttacher(spec *Spec) (Attacher, error)
NewDetacher(name string, podUID types.UID) (Detacher, error)
NewAttacher() (Attacher, error)
NewDetacher() (Detacher, error)
}
// VolumeHost is an interface that plugins can use to access the kubelet.