class ImagesManager
Methods
__aiter__()
__call__()
int | None
default:"100"
Maximum number of images to return. None returns all.
ImageKind | None
default:"None"
Filter by image kind.
bool
default:"False"
If True, return only tagged images.
datetime | timedelta | None
default:"None"
Return images created after this time. Accepts datetime or timedelta relative to now.
datetime | timedelta | None
default:"None"
Return images created before this time. Accepts datetime or timedelta relative to now.
list[TypeVar(_ImageT, bound= _ContreeImageBase)]
List of images matching the given filters.
docker()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
import_from()
str | OCIReference
required
str |
OCIReferenceOCI reference string or OCIReference pointing to the source image.str | None
default:"None"
Tag to assign to the imported image. Defaults to the tag in the reference.
str | None
default:"None"
Registry username for private registries.
str | None
default:"None"
Registry password for private registries.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Imported image object.
ValueError – If image is a UUID or credentials are incomplete.
FailedOperationError – If the import operation completes without returning an image.
oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
podman()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
pull()
required
default:"None"
default:"None"
default:"None"
default:"None"
ContreeImage
pull_by_oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
use()
str | UUID | OCIReference
required
str | UUID |
OCIReferenceImage identifier — UUID, OCI reference string, or OCIReference object.bool
default:"False"
If True, verify the image exists by fetching it from the API.
TypeVar(_ImageT, bound= _ContreeImageBase)
Image object corresponding to the given reference.
class ImagesManagerSync
Methods
__call__()
int | None
default:"100"
Maximum number of images to return. None returns all.
ImageKind | None
default:"None"
Filter by image kind.
bool
default:"False"
If True, return only tagged images.
datetime | timedelta | None
default:"None"
Return images created after this time. Accepts datetime or timedelta relative to now.
datetime | timedelta | None
default:"None"
Return images created before this time. Accepts datetime or timedelta relative to now.
list[TypeVar(_ImageT, bound= _ContreeImageBase)]
List of images matching the given filters.
__iter__()
docker()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
import_from()
str | OCIReference
required
str |
OCIReferenceOCI reference string or OCIReference pointing to the source image.str | None
default:"None"
Tag to assign to the imported image. Defaults to the tag in the reference.
str | None
default:"None"
Registry username for private registries.
str | None
default:"None"
Registry password for private registries.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Imported image object.
ValueError – If image is a UUID or credentials are incomplete.
FailedOperationError – If the import operation completes without returning an image.
oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
podman()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
pull()
required
default:"None"
default:"None"
default:"None"
default:"None"
ContreeImageSync
pull_by_oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str | OCIReference | UUID
required
str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.str | None
default:"None"
Tag override; if provided, replaces the tag from the reference.
str | None
default:"None"
Registry username for authenticated imports.
str | None
default:"None"
Registry password for authenticated imports.
float | None
default:"None"
Maximum seconds to wait for the import operation.
TypeVar(_ImageT, bound= _ContreeImageBase)
Resolved or imported image object.
NotFoundError – If ref is a UUID and the image does not exist.
use()
str | UUID | OCIReference
required
str | UUID |
OCIReferenceImage identifier — UUID, OCI reference string, or OCIReference object.bool
default:"False"
If True, verify the image exists by fetching it from the API.
TypeVar(_ImageT, bound= _ContreeImageBase)
Image object corresponding to the given reference.