-
Notifications
You must be signed in to change notification settings - Fork 497
/
Copy pathapi_posix_test.go
45 lines (43 loc) · 1.31 KB
/
api_posix_test.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
//go:build !windows
// +build !windows
package api
const (
fetchJWTUsage = `Usage of fetch jwt:
-audience value
comma separated list of audience values
-format value
deprecated; use -output
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-spiffeID string
SPIFFE ID subject (optional)
-timeout value
Time to wait for a response (default 5s)
`
fetchX509Usage = `Usage of fetch x509:
-output value
Desired output format (pretty, json); default: pretty.
-silent
Suppress stdout
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-timeout value
Time to wait for a response (default 5s)
-write string
Write SVID data to the specified path (optional; only available for pretty output format)
`
validateJWTUsage = `Usage of validate jwt:
-audience string
expected audience value
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-svid string
JWT SVID
-timeout value
Time to wait for a response (default 5s)
`
)