-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathroxctl.go
More file actions
58 lines (40 loc) · 2.86 KB
/
roxctl.go
File metadata and controls
58 lines (40 loc) · 2.86 KB
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
package env
var (
// CACertFileEnv allows to pass a custom CA certificate file (path to a certificate file in PEM format).
CACertFileEnv = RegisterSetting("ROX_CA_CERT_FILE")
// ClientForceHTTP1Env configures the use of HTTP/1 for all connections (advanced; only use if you encounter connection issues).
ClientForceHTTP1Env = RegisterBooleanSetting("ROX_CLIENT_FORCE_HTTP1", false)
// DirectGRPCEnv configures the use of direct gRPC (advanced; only use if you encounter connection issues).
DirectGRPCEnv = RegisterBooleanSetting("ROX_DIRECT_GRPC_CLIENT", false)
// EndpointEnv specifies the central endpoint to use for commandline operations.
EndpointEnv = RegisterSetting("ROX_ENDPOINT")
// InsecureClientEnv enables insecure client connection options (DANGEROUS, USE WITH CAUTION).
InsecureClientEnv = RegisterBooleanSetting("ROX_INSECURE_CLIENT", false)
// InsecureClientSkipTLSVerifyEnv allows commandline clients to skip the TLS certificate validation.
InsecureClientSkipTLSVerifyEnv = RegisterBooleanSetting("ROX_INSECURE_CLIENT_SKIP_TLS_VERIFY", false)
// NoColorEnv disables commandline color output.
NoColorEnv = RegisterBooleanSetting("ROX_NO_COLOR", false)
// PasswordEnv specifies the central admin password to use for commandline operations.
PasswordEnv = RegisterSetting("ROX_ADMIN_PASSWORD")
// PlaintextEnv specifies whether the commandline operations should communicate over unencrypted channesl.
PlaintextEnv = RegisterBooleanSetting("ROX_PLAINTEXT", false)
// ServerEnv specifies the central server name to use for commandline operations.
ServerEnv = RegisterSetting("ROX_SERVER_NAME")
// TokenEnv is the variable that clients can source for commandline operations.
TokenEnv = RegisterSetting("ROX_API_TOKEN")
// TokenFileEnv is the variable that clients can source for commandline operations.
TokenFileEnv = RegisterSetting("ROX_API_TOKEN_FILE")
// ConfigDirEnv is the variable that clients can use for specifying the config location for commandline operations.
ConfigDirEnv = RegisterSetting("ROX_CONFIG_DIR")
// UseCurrentKubeContext instructs roxctl to use port-forwarding for central
// service connections in the current kubeconfig context.
UseCurrentKubeContext = RegisterBooleanSetting("ROX_USE_KUBECONTEXT", false)
// ClientMaxRetries specifies the maximum number of times a client should retry a request.
ClientMaxRetries = RegisterIntegerSetting("ROX_CLIENT_MAX_RETRIES", 3)
// ScannerDBDownloadBaseURL specifies the base URL to use when downloading offline scanner definitions.
ScannerDBDownloadBaseURL = RegisterSetting("ROX_SCAN_DB_DL_BASE_URL", WithDefault("https://install.stackrox.io/scanner"))
// OutputFile specifies the path where roxctl should write its standard output
OutputFile = RegisterSetting("ROX_STDOUT")
// ErrorFile specifies the path where roxctl should write its standard error
ErrorFile = RegisterSetting("ROX_STDERR")
)