Skip to content

Commit ad5dbb1

Browse files
authored
feat(cockpit): add list datasource endpoint (#3399)
1 parent 3daeab3 commit ad5dbb1

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

cmd/scw/testdata/test-all-usage-cockpit-token-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw cockpit token list [arg=value ...]
77

88
ARGS:
9-
[order-by] (created_at_asc | created_at_desc | name_asc | name_desc)
9+
[order-by] How the response is ordered (created_at_asc | created_at_desc | name_asc | name_desc)
1010
[project-id] Project ID to use. If none is passed the default project ID will be used
1111

1212
FLAGS:

docs/commands/cockpit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ scw cockpit token list [arg=value ...]
500500

501501
| Name | | Description |
502502
|------|---|-------------|
503-
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | |
503+
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | How the response is ordered |
504504
| project-id | | Project ID to use. If none is passed the default project ID will be used |
505505

506506

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231004140311-fc4689b18e37
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
487487
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
488488
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
489489
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
490-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd h1:2gTqwKzQa5ZY3oRyFr2dZKZ2fcDbG7vL5CqrPlzAYtI=
491-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
490+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231004140311-fc4689b18e37 h1:w5vDrB6s8sREQSbEFAWNMKkvDUgIdkopKGD80mgO3Qo=
491+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231004140311-fc4689b18e37/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
492492
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
493493
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
494494
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/cockpit/v1beta1/cockpit_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ func cockpitTokenList() *core.Command {
318318
ArgSpecs: core.ArgSpecs{
319319
{
320320
Name: "order-by",
321+
Short: `How the response is ordered`,
321322
Required: false,
322323
Deprecated: false,
323324
Positional: false,

0 commit comments

Comments
 (0)