Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Get marketplace resources.

USAGE:
scw marketplace category get [arg=value ...]

ARGS:
category-id

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List marketplace resources.

USAGE:
scw marketplace category list

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Marketplace category management commands.

USAGE:
scw marketplace category <command>

AVAILABLE COMMANDS:
get Get marketplace resources
list List marketplace resources

FLAGS:
-h, --help help for category

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw marketplace category [command] --help" for more information about a command.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Get marketplace resources.

USAGE:
scw marketplace local-image get [arg=value ...]

ARGS:
local-image-id

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ USAGE:
scw marketplace local-image <command>

AVAILABLE COMMANDS:
get Get marketplace resources
list List local images from a specific image or version

FLAGS:
Expand Down
2 changes: 2 additions & 0 deletions cmd/scw/testdata/test-all-usage-marketplace-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ USAGE:
scw marketplace <command>

AVAILABLE COMMANDS:
category Marketplace category management commands
image Marketplace images management commands
local-image Marketplace Local Images management commands
version Marketplace version management commands

FLAGS:
-h, --help help for marketplace
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Get marketplace resources.

USAGE:
scw marketplace version get [arg=value ...]

ARGS:
version-id

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List marketplace resources.

USAGE:
scw marketplace version list [arg=value ...]

ARGS:
[image-id]
[order-by] (created_at_asc | created_at_desc)

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Marketplace version management commands.

USAGE:
scw marketplace version <command>

AVAILABLE COMMANDS:
get Get marketplace resources
list List marketplace resources

FLAGS:
-h, --help help for version

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw marketplace version [command] --help" for more information about a command.
106 changes: 106 additions & 0 deletions docs/commands/marketplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,56 @@
# Documentation for `scw marketplace`
Marketplace API.

- [Marketplace category management commands](#marketplace-category-management-commands)
- [Get marketplace resources](#get-marketplace-resources)
- [List marketplace resources](#list-marketplace-resources)
- [Marketplace images management commands](#marketplace-images-management-commands)
- [Get a specific marketplace image](#get-a-specific-marketplace-image)
- [List marketplace images](#list-marketplace-images)
- [Marketplace Local Images management commands](#marketplace-local-images-management-commands)
- [Get marketplace resources](#get-marketplace-resources)
- [List local images from a specific image or version](#list-local-images-from-a-specific-image-or-version)
- [Marketplace version management commands](#marketplace-version-management-commands)
- [Get marketplace resources](#get-marketplace-resources)
- [List marketplace resources](#list-marketplace-resources)


## Marketplace category management commands

Marketplace category management commands.


### Get marketplace resources

Get marketplace resources.

**Usage:**

```
scw marketplace category get [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| category-id | Required | |



### List marketplace resources

List marketplace resources.

**Usage:**

```
scw marketplace category list
```



## Marketplace images management commands

Marketplace images management commands.
Expand Down Expand Up @@ -60,6 +103,25 @@ scw marketplace image list [arg=value ...]
Marketplace Local Images management commands.


### Get marketplace resources

Get marketplace resources.

**Usage:**

```
scw marketplace local-image get [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| local-image-id | Required | |



### List local images from a specific image or version

List local images from a specific image or version.
Expand All @@ -83,3 +145,47 @@ scw marketplace local-image list [arg=value ...]



## Marketplace version management commands

Marketplace version management commands.


### Get marketplace resources

Get marketplace resources.

**Usage:**

```
scw marketplace version get [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| version-id | Required | |



### List marketplace resources

List marketplace resources.

**Usage:**

```
scw marketplace version list [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| image-id | | |
| order-by | One of: `created_at_asc`, `created_at_desc` | |



2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/moby/buildkit v0.11.4
github.com/opencontainers/go-digest v1.0.0
github.com/pkg/errors v0.9.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230322194848-b93be9bb5355
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230323101524-c017498bf616
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230322194848-b93be9bb5355 h1:aHNVwBytdB7wkPgNiHnIHEPTkiRbMiCo6LnGIpPdg3k=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230322194848-b93be9bb5355/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230323101524-c017498bf616 h1:7zcfy2f51uoLQyFzguQXa5rxDzyy8md6eWTuwFn3sis=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15.0.20230323101524-c017498bf616/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
Expand Down
Loading