Skip to content

Commit a91e47f

Browse files
feat(marketplace): add type field to LocalImage (#3242)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 39343ef commit a91e47f

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

cmd/scw/testdata/test-all-usage-marketplace-local-image-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[order-by] (created_at_asc | created_at_desc)
1212
[image-label]
1313
[zone]
14+
[type] (unknown_type | instance_local | instance_sbs)
1415

1516
FLAGS:
1617
-h, --help help for list

docs/commands/marketplace.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ scw marketplace local-image list [arg=value ...]
142142
| order-by | One of: `created_at_asc`, `created_at_desc` | |
143143
| image-label | | |
144144
| zone | | |
145+
| type | One of: `unknown_type`, `instance_local`, `instance_sbs` | |
145146

146147

147148

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.17.0.20230621092234-e6b367eed6a4
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230626132518-b0dfa1defaaf
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
@@ -497,8 +497,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj
497497
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
498498
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
499499
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
500-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230621092234-e6b367eed6a4 h1:qFlORTA+ndCi1IRg66KTkU0eii2EBYEpXASKyB208gc=
501-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230621092234-e6b367eed6a4/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
500+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230626132518-b0dfa1defaaf h1:df06kcC2caUTghLW6aTSyL3GUeM79BPvbtMyng187aE=
501+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230626132518-b0dfa1defaaf/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
502502
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
503503
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
504504
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/marketplace/v2/marketplace_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@ func marketplaceLocalImageList() *core.Command {
307307
Deprecated: false,
308308
Positional: false,
309309
},
310+
{
311+
Name: "type",
312+
Required: false,
313+
Deprecated: false,
314+
Positional: false,
315+
EnumValues: []string{"unknown_type", "instance_local", "instance_sbs"},
316+
},
310317
},
311318
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
312319
request := args.(*marketplace.ListLocalImagesRequest)

0 commit comments

Comments
 (0)