-
Notifications
You must be signed in to change notification settings - Fork 307
/
types.go
48 lines (37 loc) · 949 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package vm
import "github.com/rancher/wrangler/pkg/condition"
var (
vmReady condition.Cond = "Ready"
vmiPaused condition.Cond = "Paused"
)
type EjectCdRomActionInput struct {
DiskNames []string `json:"diskNames,omitempty"`
}
type BackupInput struct {
Name string `json:"name"`
}
type RestoreInput struct {
Name string `json:"name"`
BackupName string `json:"backupName"`
}
type MigrateInput struct {
NodeName string `json:"nodeName"`
}
type CreateTemplateInput struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
WithData bool `json:"withData"`
}
type AddVolumeInput struct {
DiskName string `json:"diskName"`
VolumeSourceName string `json:"volumeSourceName"`
}
type RemoveVolumeInput struct {
DiskName string `json:"diskName"`
}
type CloneInput struct {
TargetVM string `json:"targetVm"`
}
type FindMigratableNodesOutput struct {
Nodes []string `json:"nodes"`
}