-
Notifications
You must be signed in to change notification settings - Fork 485
/
util_windows_test.go
132 lines (130 loc) · 5.88 KB
/
util_windows_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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
//go:build windows
package entry
const (
createUsage = `Usage of entry create:
-admin
If set, the SPIFFE ID in this entry will be granted access to the SPIRE Server's management APIs
-data string
Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.
-dns value
A DNS name that will be included in SVIDs issued based on this entry, where appropriate. Can be used more than once
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-entryExpiry int
An expiry, from epoch in seconds, for the resulting registration entry to be pruned
-entryID string
A custom ID for this registration entry (optional). If not set, a new entry ID will be generated
-federatesWith value
SPIFFE ID of a trust domain to federate with. Can be used more than once
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-node
If set, this entry will be applied to matching nodes rather than workloads
-output value
Desired output format (pretty, json); default: pretty.
-parentID string
The SPIFFE ID of this record's parent
-selector value
A colon-delimited type:value selector. Can be used more than once
-spiffeID string
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
showUsage = `Usage of entry show:
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-entryID string
The Entry ID of the records to show
-federatesWith value
SPIFFE ID of a trust domain an entry is federate with. Can be used more than once
-hint string
The Hint of the records to show (optional)
-matchFederatesWithOn string
The match mode used when filtering by federates with. Options: exact, any, superset and subset (default "superset")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-parentID string
The Parent ID of the records to show
-selector value
A colon-delimited type:value selector. Can be used more than once
-spiffeID string
The SPIFFE ID of the records to show
`
updateUsage = `Usage of entry update:
-admin
If set, the SPIFFE ID in this entry will be granted access to the SPIRE Server's management APIs
-data string
Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.
-dns value
A DNS name that will be included in SVIDs issued based on this entry, where appropriate. Can be used more than once
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-entryExpiry int
An expiry, from epoch in seconds, for the resulting registration entry to be pruned
-entryID string
The Registration Entry ID of the record to update
-federatesWith value
SPIFFE ID of a trust domain to federate with. Can be used more than once
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-parentID string
The SPIFFE ID of this record's parent
-selector value
A colon-delimited type:value selector. Can be used more than once
-spiffeID string
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
deleteUsage = `Usage of entry delete:
-entryID string
The Registration Entry ID of the record to delete.
-file string
Path to a file containing a JSON structure for batch deletion (optional). If set to '-', read from stdin.
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
countUsage = `Usage of entry count:
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-federatesWith value
SPIFFE ID of a trust domain an entry is federate with. Can be used more than once
-hint string
The Hint of the records to count (optional)
-matchFederatesWithOn string
The match mode used when filtering by federates with. Options: exact, any, superset and subset (default "superset")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-parentID string
The Parent ID of the records to count
-selector value
A colon-delimited type:value selector. Can be used more than once
-spiffeID string
The SPIFFE ID of the records to count
`
)