/
types.go
77 lines (60 loc) · 1.56 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package driver
type remoteVolumeCreateReq struct {
Name string `json:"Name"`
Opts map[string]string `json:"Opts"`
}
type remoteVolumeCreateResp struct {
Err string `json:"Err"`
}
type remoteVolumeRemoveReq struct {
Name string `json:"Name"`
}
type remoteVolumeMountReq struct {
Name string `json:"Name"`
ID string `json:"ID"`
}
type remoteVolumeMountResp struct {
Mountpoint string `json:"Mountpoint"`
Err string `json:"Err"`
}
type remoteVolumePathReq struct {
Name string `json:"Name"`
}
type remoteVolumePathResp struct {
Mountpoint string `json:"Mountpoint"`
Err string `json:"Err"`
}
type remoteVolumeUnmountReq struct {
Name string `json:"Name"`
ID string `json:"ID"`
}
type remoteVolumeUnmountResp struct {
Err string `json:"Err"`
}
type remoteVolumeGetReq struct {
Name string `json:"Name"`
}
type remoteVolumeDesc struct {
Name string `json:"Name"`
Mountpoint string `json:"Mountpoint"`
Status map[string]interface{} `json:"Status"`
}
type remoteVolumeCapability struct {
Scope string `json:"Scope"`
}
type remoteVolumeGetResp struct {
Volume *remoteVolumeDesc `json:"Volume"`
Err string `json:"Err"`
}
type remoteVolumeListReq struct {
}
type remoteVolumeListResp struct {
Volumes []*remoteVolumeDesc `json:"Volumes"`
Err string `json:"Err"`
}
type remoteVolumeCapabilitiesReq struct {
}
type remoteVolumeCapabilitiesResp struct {
Capabilities *remoteVolumeCapability `json:"Capabilities"`
Err string `json:"Err"`
}