-
Notifications
You must be signed in to change notification settings - Fork 180
/
global_flags.go
52 lines (46 loc) · 3.73 KB
/
global_flags.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
package config
type GlobalFlags struct {
Help bool `short:"h" long:"help"`
Debug bool `short:"d" long:"debug" env:"BBL_DEBUG"`
Version bool `short:"v" long:"version"`
NoConfirm bool `short:"n" long:"no-confirm"`
StateDir string `short:"s" long:"state-dir" env:"BBL_STATE_DIRECTORY"`
StateBucket string ` long:"state-bucket" env:"BBL_STATE_BUCKET"`
EnvID string ` long:"name"`
IAAS string ` long:"iaas" env:"BBL_IAAS"`
AWSAccessKeyID string `long:"aws-access-key-id" env:"BBL_AWS_ACCESS_KEY_ID"`
AWSSecretAccessKey string `long:"aws-secret-access-key" env:"BBL_AWS_SECRET_ACCESS_KEY"`
AWSRegion string `long:"aws-region" env:"BBL_AWS_REGION"`
AzureClientID string `long:"azure-client-id" env:"BBL_AZURE_CLIENT_ID"`
AzureClientSecret string `long:"azure-client-secret" env:"BBL_AZURE_CLIENT_SECRET"`
AzureRegion string `long:"azure-region" env:"BBL_AZURE_REGION"`
AzureSubscriptionID string `long:"azure-subscription-id" env:"BBL_AZURE_SUBSCRIPTION_ID"`
AzureTenantID string `long:"azure-tenant-id" env:"BBL_AZURE_TENANT_ID"`
GCPServiceAccountKey string `long:"gcp-service-account-key" env:"BBL_GCP_SERVICE_ACCOUNT_KEY"`
GCPRegion string `long:"gcp-region" env:"BBL_GCP_REGION"`
VSphereNetwork string `long:"vsphere-network" env:"BBL_VSPHERE_NETWORK"`
VSphereSubnetCIDR string `long:"vsphere-subnet-cidr" env:"BBL_VSPHERE_SUBNET_CIDR"`
VSphereVCenterCluster string `long:"vsphere-vcenter-cluster" env:"BBL_VSPHERE_VCENTER_CLUSTER"`
VSphereVCenterDC string `long:"vsphere-vcenter-dc" env:"BBL_VSPHERE_VCENTER_DC"`
VSphereVCenterDS string `long:"vsphere-vcenter-ds" env:"BBL_VSPHERE_VCENTER_DS"`
VSphereVCenterIP string `long:"vsphere-vcenter-ip" env:"BBL_VSPHERE_VCENTER_IP"`
VSphereVCenterPassword string `long:"vsphere-vcenter-password" env:"BBL_VSPHERE_VCENTER_PASSWORD"`
VSphereVCenterRP string `long:"vsphere-vcenter-rp" env:"BBL_VSPHERE_VCENTER_RP"`
VSphereVCenterUser string `long:"vsphere-vcenter-user" env:"BBL_VSPHERE_VCENTER_USER"`
VSphereVCenterDisks string `long:"vsphere-vcenter-disks" env:"BBL_VSPHERE_VCENTER_DISKS"`
VSphereVCenterVMs string `long:"vsphere-vcenter-vms" env:"BBL_VSPHERE_VCENTER_VMS"`
VSphereVCenterTemplates string `long:"vsphere-vcenter-templates" env:"BBL_VSPHERE_VCENTER_TEMPLATES"`
OpenStackAuthURL string `long:"openstack-auth-url" env:"BBL_OPENSTACK_AUTH_URL"`
OpenStackAZ string `long:"openstack-az" env:"BBL_OPENSTACK_AZ"`
OpenStackNetworkID string `long:"openstack-network-id" env:"BBL_OPENSTACK_NETWORK_ID"`
OpenStackNetworkName string `long:"openstack-network-name" env:"BBL_OPENSTACK_NETWORK_NAME"`
OpenStackPassword string `long:"openstack-password" env:"BBL_OPENSTACK_PASSWORD"`
OpenStackUsername string `long:"openstack-username" env:"BBL_OPENSTACK_USERNAME"`
OpenStackProject string `long:"openstack-project" env:"BBL_OPENSTACK_PROJECT"`
OpenStackDomain string `long:"openstack-domain" env:"BBL_OPENSTACK_DOMAIN"`
OpenStackRegion string `long:"openstack-region" env:"BBL_OPENSTACK_REGION"`
// optional
OpenStackCACertFile string `long:"openstack-cacert-file" env:"BBL_OPENSTACK_CACERT_FILE"`
OpenStackInsecure string `long:"openstack-insecure" env:"BBL_OPENSTACK_INSECURE"`
OpenStackDNSNameServers []string `long:"openstack-dns-name-server" env:"BBL_OPENSTACK_DNS_NAME_SERVERS" env-delim:","`
}