You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Name: the name of the image, it must be unique within the namespace.
289
288
Namestring`json:"name"`
290
-
// NamespaceID: the unique ID of the Namespace the image belongs to.
289
+
// NamespaceID: the UUID of the namespace the image belongs to.
291
290
NamespaceIDstring`json:"namespace_id"`
292
291
// Status: the status of the image.
293
292
// Default value: unknown
294
293
StatusImageStatus`json:"status"`
295
294
// StatusMessage: details of the image status.
296
295
StatusMessage*string`json:"status_message"`
297
-
// Visibility: a `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter.
296
+
// 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.
298
297
// Default value: visibility_unknown
299
298
VisibilityImageVisibility`json:"visibility"`
300
299
// Size: image size in bytes, calculated from the size of image layers.
301
300
// Image size in bytes, calculated from the size of image layers. One layer used in two tags of the same image is counted once but one layer used in two images is counted twice.
302
301
Size scw.Size`json:"size"`
303
-
// CreatedAt: creation date.
302
+
// CreatedAt: date and time of image creation.
304
303
CreatedAt*time.Time`json:"created_at"`
305
-
// UpdatedAt: last modification date, from the user or the service.
304
+
// UpdatedAt: date and time of last update.
306
305
UpdatedAt*time.Time`json:"updated_at"`
307
306
// Tags: list of docker tags of the image.
308
307
Tags []string`json:"tags"`
309
308
}
310
309
311
310
// ListImagesResponse: list images response.
312
311
typeListImagesResponsestruct {
313
-
// Images: paginated list of images matching filters.
312
+
// Images: paginated list of images that match the selected filters.
314
313
Images []*Image`json:"images"`
315
-
// TotalCount: total number of images matching filters.
314
+
// TotalCount: total number of images that match the selected filters.
316
315
TotalCountuint32`json:"total_count"`
317
316
}
318
317
319
318
// ListNamespacesResponse: list namespaces response.
320
319
typeListNamespacesResponsestruct {
321
-
// Namespaces: paginated list of namespaces matching filters.
320
+
// Namespaces: paginated list of namespaces that match the selected filters.
322
321
Namespaces []*Namespace`json:"namespaces"`
323
-
// TotalCount: total number of namespaces matching filters.
322
+
// TotalCount: total number of namespaces that match the selected filters.
324
323
TotalCountuint32`json:"total_count"`
325
324
}
326
325
327
326
// ListTagsResponse: list tags response.
328
327
typeListTagsResponsestruct {
329
-
// Tags: paginated list of tags matching filters.
328
+
// Tags: paginated list of tags that match the selected filters.
330
329
Tags []*Tag`json:"tags"`
331
-
// TotalCount: total number of tags matching filters.
330
+
// TotalCount: total number of tags that match the selected filters.
332
331
TotalCountuint32`json:"total_count"`
333
332
}
334
333
335
334
// Namespace: namespace.
336
335
typeNamespacestruct {
337
-
// ID: the unique ID of the namespace.
336
+
// ID: the UUID of the namespace.
338
337
IDstring`json:"id"`
339
338
// Name: the name of the namespace, unique in a region accross all organizations.
340
339
Namestring`json:"name"`
@@ -351,13 +350,13 @@ type Namespace struct {
351
350
StatusMessagestring`json:"status_message"`
352
351
// Endpoint: endpoint reachable by docker.
353
352
Endpointstring`json:"endpoint"`
354
-
// IsPublic: namespace visibility policy.
353
+
// IsPublic: whether or not namespace is public.
355
354
IsPublicbool`json:"is_public"`
356
355
// Size: total size of the namespace, calculated as the sum of the size of all images in the namespace.
357
356
Size scw.Size`json:"size"`
358
-
// CreatedAt: creation date.
357
+
// CreatedAt: date and time of creation.
359
358
CreatedAt*time.Time`json:"created_at"`
360
-
// UpdatedAt: last modification date, from the user or the service.
359
+
// UpdatedAt: date and time of last update.
361
360
UpdatedAt*time.Time`json:"updated_at"`
362
361
// ImageCount: number of images in the namespace.
363
362
ImageCountuint32`json:"image_count"`
@@ -367,20 +366,20 @@ type Namespace struct {
367
366
368
367
// Tag: tag.
369
368
typeTagstruct {
370
-
// ID: the unique ID of the tag.
369
+
// ID: the UUID of the tag.
371
370
IDstring`json:"id"`
372
-
// Name: tag name, unique for an image.
371
+
// Name: tag name, unique to an image.
373
372
Namestring`json:"name"`
374
-
// ImageID: image ID this tag belongs to.
373
+
// ImageID: image ID the of the image the tag belongs to.
375
374
ImageIDstring`json:"image_id"`
376
375
// Status: tag status.
377
376
// Default value: unknown
378
377
StatusTagStatus`json:"status"`
379
-
// Digest: hash of the tag actual content. Several tags of a same image may have the same digest.
378
+
// Digest: hash of the tag content. Several tags of a same image may have the same digest.
380
379
Digeststring`json:"digest"`
381
-
// CreatedAt: creation date.
380
+
// CreatedAt: date and time of creation.
382
381
CreatedAt*time.Time`json:"created_at"`
383
-
// UpdatedAt: last modification date, from the user or the service.
382
+
// UpdatedAt: date and time of last update.
384
383
UpdatedAt*time.Time`json:"updated_at"`
385
384
}
386
385
@@ -398,7 +397,7 @@ type ListNamespacesRequest struct {
398
397
Page*int32`json:"-"`
399
398
// PageSize: a positive integer lower or equal to 100 to select the number of items to display.
400
399
PageSize*uint32`json:"-"`
401
-
// OrderBy: field by which to order the display of Images.
400
+
// OrderBy: 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`.
402
401
// Default value: created_at_asc
403
402
OrderByListNamespacesRequestOrderBy`json:"-"`
404
403
// OrganizationID: filter by Organization ID.
@@ -409,7 +408,8 @@ type ListNamespacesRequest struct {
409
408
Name*string`json:"-"`
410
409
}
411
410
412
-
// ListNamespaces: list all your namespaces.
411
+
// ListNamespaces: list namespaces.
412
+
// 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.
// Region: region to target. If none is passed will use default region from the config.
456
456
Region scw.Region`json:"-"`
457
-
// NamespaceID: the unique ID of the Namespace.
457
+
// NamespaceID: the UUID of the namespace.
458
458
NamespaceIDstring`json:"-"`
459
459
}
460
460
461
461
// GetNamespace: get a namespace.
462
-
// Get the namespace associated with the given id.
462
+
// 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.
// ProjectID: assign the namespace to a project ID.
504
+
// ProjectID: project ID on which the namespace will be created.
505
505
// Precisely one of OrganizationID, ProjectID must be set.
506
506
ProjectID*string`json:"project_id,omitempty"`
507
-
// IsPublic: define the default visibility policy.
507
+
// IsPublic: whether or not namespace is public.
508
508
IsPublicbool`json:"is_public"`
509
509
}
510
510
511
-
// CreateNamespace: create a new namespace.
511
+
// CreateNamespace: create a namespace.
512
+
// 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.
// Region: region to target. If none is passed will use default region from the config.
560
561
Region scw.Region`json:"-"`
561
-
// NamespaceID: namespace ID to update.
562
+
// NamespaceID: ID of the namespace to update.
562
563
NamespaceIDstring`json:"-"`
563
-
// Description: define a description.
564
+
// Description: namespace description.
564
565
Description*string`json:"description"`
565
-
// IsPublic: define the default visibility policy.
566
+
// IsPublic: whether or not the namespace is public.
566
567
IsPublic*bool`json:"is_public"`
567
568
}
568
569
569
-
// UpdateNamespace: update an existing namespace.
570
-
// Update the namespace associated with the given id.
570
+
// UpdateNamespace: update a namespace.
571
+
// Update the parameters of a given namespace, specified by its `namespace_id` and `region`. You can update the `description` and `is_public` parameters.
@@ -651,20 +652,21 @@ type ListImagesRequest struct {
651
652
Page*int32`json:"-"`
652
653
// PageSize: a positive integer lower or equal to 100 to select the number of items to display.
653
654
PageSize*uint32`json:"-"`
654
-
// OrderBy: field by which to order the display of Images.
655
+
// OrderBy: 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`.
655
656
// Default value: created_at_asc
656
657
OrderByListImagesRequestOrderBy`json:"-"`
657
-
// NamespaceID: filter by the Namespace ID.
658
+
// NamespaceID: filter by the namespace ID.
658
659
NamespaceID*string`json:"-"`
659
-
// Name: filter by the Image name (exact match).
660
+
// Name: filter by the image name (exact match).
660
661
Name*string`json:"-"`
661
662
// OrganizationID: filter by Organization ID.
662
663
OrganizationID*string`json:"-"`
663
664
// ProjectID: filter by Project ID.
664
665
ProjectID*string`json:"-"`
665
666
}
666
667
667
-
// ListImages: list all your images.
668
+
// ListImages: list images.
669
+
// 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.
// Region: region to target. If none is passed will use default region from the config.
712
714
Region scw.Region`json:"-"`
713
-
// ImageID: the unique ID of the Image.
715
+
// ImageID: the UUID of the image.
714
716
ImageIDstring`json:"-"`
715
717
}
716
718
717
-
// GetImage: get a image.
718
-
// Get the image associated with the given id.
719
+
// GetImage: get an image.
720
+
// 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.
// Region: region to target. If none is passed will use default region from the config.
752
754
Region scw.Region`json:"-"`
753
-
// ImageID: image ID to update.
755
+
// ImageID: ID of the image to update.
754
756
ImageIDstring`json:"-"`
755
-
// Visibility: a `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter.
757
+
// 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.
756
758
// Default value: visibility_unknown
757
759
VisibilityImageVisibility`json:"visibility"`
758
760
}
759
761
760
-
// UpdateImage: update an existing image.
761
-
// Update the image associated with the given id.
762
+
// UpdateImage: update an image.
763
+
// Update the parameters of a given image, specified by its `image_id` and `region`. You can update the `visibility` parameter.
// Region: region to target. If none is passed will use default region from the config.
840
842
Region scw.Region`json:"-"`
841
-
// ImageID: the unique ID of the image.
843
+
// ImageID: the UUID of the image.
842
844
ImageIDstring`json:"-"`
843
845
// Page: a positive integer to choose the page to display.
844
846
Page*int32`json:"-"`
845
847
// PageSize: a positive integer lower or equal to 100 to select the number of items to display.
846
848
PageSize*uint32`json:"-"`
847
-
// OrderBy: field by which to order the display of Images.
849
+
// OrderBy: criteria to use when ordering tag 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`.
848
850
// Default value: created_at_asc
849
851
OrderByListTagsRequestOrderBy`json:"-"`
850
852
// Name: filter by the tag name (exact match).
851
853
Name*string`json:"-"`
852
854
}
853
855
854
-
// ListTags: list all your tags.
856
+
// ListTags: list tags.
857
+
// List all tags for a given image, specified by region. By default, the tags 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 `name`.
// Region: region to target. If none is passed will use default region from the config.
900
903
Region scw.Region`json:"-"`
901
-
// TagID: the unique ID of the Tag.
904
+
// TagID: the UUID of the tag.
902
905
TagIDstring`json:"-"`
903
906
}
904
907
905
908
// GetTag: get a tag.
906
-
// Get the tag associated with the given id.
909
+
// Retrieve information about a given image tag, specified by its `tag_id` and region. Full details about the tag, such as `name`, `image_id`, `status`, and `digest` are returned in the response.
0 commit comments