registry_data

Module for tracking registry metadata.

class RegistryData(image_name: str, *args, **kwargs)[source]

Bases: PodmanResource

Registry metadata about Image.

Initialize RegistryData object.

Parameters:

image_name – Name of Image.

Keyword Arguments:
  • client (APIClient) – Configured connection to a Podman service.

  • collection (Manager) – Manager of this category of resource, named collection for compatibility

has_platform(platform: str | Mapping[str, Any]) bool[source]

Returns True if platform is available for Image.

Podman API does not support “variant” therefore it is ignored.

Parameters:

platform – Name as os[/arch[/variant]] or Mapping[str,Any]

Returns:

True if platform is available

Raises:
  • InvalidArgument – when platform value is not valid

  • APIError – when service reports an error

pull(platform: str | None = None) Image[source]

Returns Image pulled by identifier.

Parameters:

platform – Platform for which to pull Image. Default: None (all platforms.)

reload() None

Refresh this object’s data from the service.

property id

Returns the identifier for the object.

Type:

str

property short_id

Returns truncated identifier. ‘sha256’ preserved when included in the id.

No attempt is made to ensure the returned value is semantically meaningful for all resources.

Type:

str