-
Notifications
You must be signed in to change notification settings - Fork 5
/
types.go
30 lines (26 loc) · 798 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package flexvolume
type Status string
const (
StatusSuccess Status = "Success"
StatusFailure Status = "Failure"
StatusNotSupported Status = "Not Supported"
)
type FlexVolume interface {
Init() Response
GetVolumeName(map[string]string) Response
Attach(map[string]string) Response
WaitForAttach(string, map[string]string) Response
IsAttached(map[string]string, string) Response
Detach(string, string) Response
MountDevice(string, string, map[string]string) Response
UnmountDevice(string) Response
Mount(string, map[string]string) Response
Unmount(string) Response
}
type Response struct {
Status Status `json:"status"`
Message string `json:"message"`
Device string `json:"device"`
VolumeName string `json:"volumeName"`
Attached bool `json:"attached"`
}