-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathopenstack.go
73 lines (71 loc) · 1.49 KB
/
openstack.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
package main
import (
"github.com/urfave/cli"
)
var openStackFlags = []cli.Flag{
cli.StringFlag{
Name: "os-username",
Usage: "OpenStack username.",
EnvVar: "OS_USERNAME",
},
cli.StringFlag{
Name: "os-user-id",
Usage: "OpenStack user ID.",
EnvVar: "OS_USER_ID",
},
cli.StringFlag{
Name: "os-password",
Usage: "OpenStack password.",
EnvVar: "OS_PASSWORD",
},
cli.StringFlag{
Name: "os-project-name",
Usage: "OpenStack Tenant/Project name.",
EnvVar: "OS_TENANT_NAME,OS_PROJECT_NAME",
},
cli.StringFlag{
Name: "os-project-id",
Usage: "OpenStack Tenant/Project ID.",
EnvVar: "OS_TENANT_ID,OS_PROJECT_ID",
},
cli.StringFlag{
Name: "os-domain-name",
Usage: "OpenStack Domain Name.",
EnvVar: "OS_DOMAIN_NAME",
},
cli.StringFlag{
Name: "os-domain-id",
Usage: "OpenStack Domain ID.",
EnvVar: "OS_DOMAIN_ID",
},
cli.StringFlag{
Name: "os-token",
Usage: "OpenStack Token.",
EnvVar: "OS_TOKEN",
},
cli.StringFlag{
Name: "os-auth-url",
Usage: "OpenStack Auth URL.",
EnvVar: "OS_AUTH_URL",
},
cli.StringFlag{
Name: "os-region-name",
Usage: "OpenStack Region Name.",
EnvVar: "OS_REGION_NAME",
},
cli.StringFlag{
Name: "os-cacert",
Usage: "OpenStack CA certificate.",
EnvVar: "OS_CACERT",
},
cli.StringFlag{
Name: "os-insecure",
Usage: "Disable SSL verification.",
EnvVar: "OS_INSECURE",
},
cli.BoolFlag{
Name: "os-swauth",
Usage: "Usage native Swift authentication.",
EnvVar: "OS_SWAUTH",
},
}