File tree Expand file tree Collapse file tree 6 files changed +26
-6
lines changed
internal/namespaces/secret/v1alpha1 Expand file tree Collapse file tree 6 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
EXAMPLES:
9
9
Add a given Secret
10
- scw secret secret create name=foobar description="$(cat <path/to/your/secret>) "
10
+ scw secret secret create project-id=<your-project-id> name=" foobar" description="bar "
11
11
12
12
ARGS:
13
13
[project-id] Project ID to use. If none is passed the default project ID will be used
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ Create a SecretVersion.
5
5
USAGE:
6
6
scw secret version create [arg=value ...]
7
7
8
+ EXAMPLES:
9
+ Add a given Secret Version
10
+ scw secret version create name=foobar secret-id="<secret-id>" data=@<path/to/your/secret/file>
11
+
8
12
ARGS:
9
13
secret-id ID of the Secret
10
14
data Content of the secret version. Base64 is handled by the SDK (Support file loading with @/path/to/file)
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ scw secret secret create [arg=value ...]
52
52
53
53
Add a given Secret
54
54
```
55
- scw secret secret create name=foobar description="$(cat <path/to/your/secret>) "
55
+ scw secret secret create project-id=<your-project-id> name=" foobar" description="bar "
56
56
```
57
57
58
58
@@ -203,6 +203,16 @@ scw secret version create [arg=value ...]
203
203
| region | Default: ` fr-par ` <br />One of: ` fr-par ` | Region to target. If none is passed will use default region from the config |
204
204
205
205
206
+ ** Examples:**
207
+
208
+
209
+ Add a given Secret Version
210
+ ```
211
+ scw secret version create name=foobar secret-id="<secret-id>" data=@<path/to/your/secret/file>
212
+ ```
213
+
214
+
215
+
206
216
207
217
### Destroy a SecretVersion, permanently destroying the sensitive data
208
218
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ require (
21
21
github.com/moby/buildkit v0.11.4
22
22
github.com/opencontainers/go-digest v1.0.0
23
23
github.com/pkg/errors v0.9.1
24
- github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230314173919-2ec24bb08c42
24
+ github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230318120603-8df14b12fd02
25
25
github.com/spf13/cobra v1.6.1
26
26
github.com/spf13/pflag v1.0.5
27
27
github.com/stretchr/testify v1.8.2
Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:
192
192
github.com/rogpeppe/fastuuid v1.2.0 /go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ =
193
193
github.com/russross/blackfriday v1.6.0 /go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY =
194
194
github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
195
- github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230314173919-2ec24bb08c42 h1:8X7HJIk2/9N3PCt7jrp3DPLDr8ev3ilzJJaW+vx4LN4 =
196
- github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230314173919-2ec24bb08c42 /go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg =
197
195
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE =
196
+ github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230318120603-8df14b12fd02 h1:Ipdjm5oXQtzoHxsc1Pj7LqOlNJh5HrVb4R9TRpFiwKM =
197
+ github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230318120603-8df14b12fd02 /go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg =
198
198
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ =
199
199
github.com/sergi/go-diff v1.2.0 /go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM =
200
200
github.com/shibumi/go-pathspec v1.3.0 h1:QUyMZhFo0Md5B8zV8x2tesohbb5kfbpTi9rBnKh5dkI =
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ func secretSecretCreate() *core.Command {
110
110
Examples : []* core.Example {
111
111
{
112
112
Short : "Add a given Secret" ,
113
- Raw : `scw secret secret create name=foobar description="$(cat <path/to/your/secret>) "` ,
113
+ Raw : `scw secret secret create project-id=<your-project-id> name=" foobar" description="bar "` ,
114
114
},
115
115
},
116
116
}
@@ -347,6 +347,12 @@ func secretVersionCreate() *core.Command {
347
347
return api .CreateSecretVersion (request )
348
348
349
349
},
350
+ Examples : []* core.Example {
351
+ {
352
+ Short : "Add a given Secret Version" ,
353
+ Raw : `scw secret version create name=foobar secret-id="<secret-id>" data=@<path/to/your/secret/file>` ,
354
+ },
355
+ },
350
356
}
351
357
}
352
358
You can’t perform that action at this time.
0 commit comments