Skip to content

Commit f389bd9

Browse files
committed
Fix
1 parent 3488baf commit f389bd9

18 files changed

+150
-168
lines changed

cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete the image associated with the given id.
3+
Delete a given image. You must specify, in the endpoint, the `region` and `image_id` parameters of the image you want to delete.
44

55
USAGE:
66
scw registry image delete <image-id ...> [arg=value ...]
77

88
ARGS:
9-
image-id The unique ID of the Image
9+
image-id The UUID of the image
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get the image associated with the given id.
3+
Retrieve information about a given container image, specified by its `image_id` and region. Full details about the image, such as `name`, `namespace_id`, `status`, `visibility`, and `size` are returned in the response.
44

55
USAGE:
66
scw registry image get <image-id ...> [arg=value ...]
77

88
ARGS:
9-
image-id The unique ID of the Image
9+
image-id The UUID of the image
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List all your images.
3+
List all images in a specified region. By default, the images listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can also define additional parameters for your query, such as the `namespace_id` and `project_id` parameters.
44

55
USAGE:
66
scw registry image list [arg=value ...]
77

88
ARGS:
9-
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | name_asc | name_desc)
10-
[namespace-id] Filter by the Namespace ID
11-
[name] Filter by the Image name (exact match)
9+
[order-by] Criteria to use when ordering image listings. Possible values are `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `region`, `status_asc` and `status_desc`. The default value is `created_at_asc`. (created_at_asc | created_at_desc | name_asc | name_desc)
10+
[namespace-id] Filter by the namespace ID
11+
[name] Filter by the image name (exact match)
1212
[project-id] Filter by Project ID
1313
[organization-id] Filter by Organization ID
1414
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update the image associated with the given id.
3+
Update the parameters of a given image, specified by its `image_id` and `region`. You can update the `visibility` parameter.
44

55
USAGE:
66
scw registry image update <image-id ...> [arg=value ...]
77

88
ARGS:
9-
image-id Image ID to update
10-
[visibility] A `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter (visibility_unknown | inherit | public | private)
9+
image-id ID of the image to update
10+
[visibility] Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace (visibility_unknown | inherit | public | private)
1111
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1212

1313
FLAGS:

cmd/scw/testdata/test-all-usage-registry-image-usage.golden

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
An image represents a container image.
3+
An image represents a container image. A container image is a file that includes all the requirements and instructions of a complete and executable version of an application. When running, it becomes one or multiple instances of that application.
44

5-
The visibility of an image can be public (everyone can pull it), private (only your organization can pull it) or inherit from the namespace visibility (default)
6-
It can be changed with an update on the image via the registry API.
5+
The visibility of an image can be public - when anyone can pull it, private - when only users within your organization can pull it, or inherited from the namespace visibility - which is the default. The visibility of your image can be changed using the [update image endpoit](https://developers.scaleway.com/en/products/registry/api/#patch-e73745).
76

87
USAGE:
98
scw registry image <command>
109

1110
AVAILABLE COMMANDS:
1211
delete Delete an image
13-
get Get a image
14-
list List all your images
15-
update Update an existing image
12+
get Get an image
13+
list List images
14+
update Update an image
1615

1716
FLAGS:
1817
-h, --help help for image

cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a new namespace.
3+
Create a new Container Registry namespace. You must specify the namespace name and region in which you want it to be created. Optionally, you can specify the `project_id` and `is_public` in the request payload.
44

55
USAGE:
66
scw registry namespace create [arg=value ...]
77

88
ARGS:
9-
name=<generated> Define a namespace name
10-
[description] Define a description
9+
name=<generated> Name of the namespace
10+
[description] Description of the namespace
1111
[project-id] Project ID to use. If none is passed the default project ID will be used
12-
[is-public] Define the default visibility policy
12+
[is-public] Whether or not namespace is public
1313
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1414
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1515

cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete the namespace associated with the given id.
3+
Delete a given namespace. You must specify, in the endpoint, the `region` and `namespace_id` parameters of the namespace you want to delete.
44

55
USAGE:
66
scw registry namespace delete <namespace-id ...> [arg=value ...]
77

88
ARGS:
9-
namespace-id The unique ID of the Namespace
9+
namespace-id The UUID of the namespace
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get the namespace associated with the given id.
3+
Retrieve information about a given namespace, specified by its `namespace_id` and region. Full details about the namespace, such as `description`, `project_id`, `status`, `endpoint`, `is_public`, `size`, and `image_count` are returned in the response.
44

55
USAGE:
66
scw registry namespace get <namespace-id ...> [arg=value ...]
77

88
ARGS:
9-
namespace-id The unique ID of the Namespace
9+
namespace-id The UUID of the namespace
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List all your namespaces.
3+
List all namespaces in a specified region. By default, the namespaces listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can also define additional parameters for your query, such as the `instance_id` and `project_id` parameters.
44

55
USAGE:
66
scw registry namespace list [arg=value ...]
77

88
ARGS:
9-
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | description_asc | description_desc | name_asc | name_desc)
9+
[order-by] Criteria to use when ordering namespace listings. Possible values are `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `region`, `status_asc` and `status_desc`. The default value is `created_at_asc`. (created_at_asc | created_at_desc | description_asc | description_desc | name_asc | name_desc)
1010
[project-id] Filter by Project ID
1111
[name] Filter by the namespace name (exact match)
1212
[organization-id] Filter by Organization ID

cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update the namespace associated with the given id.
3+
Update the parameters of a given namespace, specified by its `namespace_id` and `region`. You can update the `description` and `is_public` parameters.
44

55
USAGE:
66
scw registry namespace update <namespace-id ...> [arg=value ...]
77

88
ARGS:
9-
namespace-id Namespace ID to update
10-
[description] Define a description
11-
[is-public] Define the default visibility policy
9+
namespace-id ID of the namespace to update
10+
[description] Namespace description
11+
[is-public] Whether or not the namespace is public
1212
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1313

1414
FLAGS:

0 commit comments

Comments
 (0)