roboto.image_registry.image_registry#
Module Contents#
- class roboto.image_registry.image_registry.ContainerCredentials(/, **data)#
Bases:
pydantic.BaseModel
Credentials used by a container
- Parameters:
data (Any)
- expiration: datetime.datetime#
- is_expired()#
- Return type:
bool
- password: str#
- registry_url: str#
- to_dict()#
- Return type:
dict[str, Any]
- username: str#
- class roboto.image_registry.image_registry.ImageRegistry(roboto_client)#
- Parameters:
roboto_client (roboto.http.RobotoClient)
- create_repository(repository_name, immutable_image_tags=False, org_id=None)#
Create a repository for a container image in Roboto’s private image registry. Images with different tags can be pushed to the same repository.
- Parameters:
repository_name (str) – The name of the repository to create.
immutable_image_tags (bool) – Whether to allow image tags to be overwritten. If set to True, then any attempt to overwrite an existing image tag will error.
org_id (Optional[str])
- Returns:
A dictionary contains the repository_name and repository_uri of the created repository.
- Return type:
- delete_image(image_uri, org_id=None)#
Delete a container image from Roboto’s private registry.
- Parameters:
image_uri (str) – The full URI of the image to delete.
org_id (Optional[str]) – ID of organization owning the provided image.
- Return type:
None
- delete_repository(repository_name, org_id=None, force=False)#
Delete a container image from Roboto’s private registry.
- Parameters:
repository_name (str) – The name of the repository to delete.
org_id (Optional[str]) – ID of organization owning the provided image.
force (bool) – Delete all images in the repository before deleting the repository if the repository is not empty.
- Return type:
None
- get_container_image_record(org_id, image_uri)#
- Parameters:
org_id (str)
image_uri (str)
- Return type:
- get_temporary_credentials(repository_uri, permissions=Permissions.ReadOnly, org_id=None)#
- Parameters:
repository_uri (str)
permissions (roboto.auth.Permissions)
org_id (Optional[str])
- Return type:
- list_images(repository_name=None, page_token=None, org_id=None)#
- Parameters:
repository_name (Optional[str])
page_token (Optional[str])
org_id (Optional[str])
- Return type:
roboto.http.PaginatedList[roboto.image_registry.record.ContainerImageRecord]
- list_repositories(page_token=None, org_id=None)#
- Parameters:
page_token (Optional[str])
org_id (Optional[str])
- Return type:
roboto.http.PaginatedList[roboto.image_registry.record.ContainerImageRepositoryRecord]
- repository_contains_image(repository_name, image_tag, org_id=None)#
- Parameters:
repository_name (str)
image_tag (str)
org_id (Optional[str])
- Return type:
bool
- class roboto.image_registry.image_registry.ImageRepository#
Bases:
TypedDict
Image repository details
- repository_name: str#
- repository_uri: str#