-
Notifications
You must be signed in to change notification settings - Fork 1
/
flags.go
48 lines (45 loc) · 1.01 KB
/
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
package global
import "github.com/urfave/cli"
var Flags = []cli.Flag{
cli.StringFlag{
Name: "type",
Value: "client",
EnvVar: "CERTIFICATE_TYPE",
Usage: `Certificate type: "node" or "client"`,
},
cli.StringFlag{
Name: "user",
EnvVar: "USER",
Usage: "User name for client certificate",
},
cli.StringSliceFlag{
Name: "host",
Usage: `"--host=address1 --host=address2" One or more host addresses for the node certificate.`,
},
cli.StringFlag{
Name: "ca-auth-key",
EnvVar: "CA_AUTH_KEY",
Usage: "Auth key to access the cfssl CA",
},
cli.StringFlag{
Name: "ca-profile",
EnvVar: "CA_PROFILE",
Usage: "Profile to use when using cfssl CA",
},
cli.StringFlag{
Name: "ca-address",
EnvVar: "CA_ADDRESS",
Usage: "Address of the cfssl CA",
},
cli.StringFlag{
Name: "certs-dir",
Value: "cockroach-certs",
EnvVar: "CERTS_DIR",
Usage: "Directory where the certificates will be saved",
},
}
var RequiredFlags = []string{
"ca-auth-key",
"ca-profile",
"ca-address",
}