This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vmtype.go
69 lines (65 loc) · 2.26 KB
/
vmtype.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
package config
import "github.com/codegangsta/cli"
func RequiredVMTypeFlags() []string {
return []string{
"mysql-proxy-vm-type",
"clock-global-vm-type",
"cc-vm-type",
"diego-brain-vm-type",
"diego-cell-vm-type",
"doppler-vm-type",
"loggregator-traffic-controller-vmtype",
"cc-worker-vm-type",
"errand-vm-type",
"etcd-vm-type",
"nats-vm-type",
"consul-vm-type",
"mysql-vm-type",
"diego-db-vm-type",
"uaa-vm-type",
"router-vm-type",
"nfs-vm-type",
}
}
func NewVMType(c *cli.Context) VMType {
return VMType{
HAProxyVMType: c.String("haproxy-vm-type"),
MySQLProxyVMType: c.String("mysql-proxy-vm-type"),
ClockGlobalVMType: c.String("clock-global-vm-type"),
CloudControllerVMType: c.String("cc-vm-type"),
DiegoBrainVMType: c.String("diego-brain-vm-type"),
DiegoCellVMType: c.String("diego-cell-vm-type"),
DopplerVMType: c.String("doppler-vm-type"),
LoggregratorVMType: c.String("loggregator-traffic-controller-vmtype"),
CloudControllerWorkerVMType: c.String("cc-worker-vm-type"),
ErrandVMType: c.String("errand-vm-type"),
EtcdVMType: c.String("etcd-vm-type"),
NatsVMType: c.String("nats-vm-type"),
ConsulVMType: c.String("consul-vm-type"),
MySQLVMType: c.String("mysql-vm-type"),
DiegoDBVMType: c.String("diego-db-vm-type"),
UAAVMType: c.String("uaa-vm-type"),
RouterVMType: c.String("router-vm-type"),
NFSVMType: c.String("nfs-vm-type"),
}
}
type VMType struct {
NatsVMType string
ConsulVMType string
MySQLVMType string
EtcdVMType string
ClockGlobalVMType string
MySQLProxyVMType string
HAProxyVMType string
RouterVMType string
NFSVMType string
CloudControllerVMType string
CloudControllerWorkerVMType string
DiegoDBVMType string
UAAVMType string
DiegoCellVMType string
DiegoBrainVMType string
DopplerVMType string
ErrandVMType string
LoggregratorVMType string
}