RSPImageTag#
- class nublado.controller.models.domain.rsptag.RSPImageTag(*, tag, image_type, display_name, base=None, version=None, cycle=None, cycle_build=None, rsp_build=None, architecture=None, extra=None, date=None)#
Bases:
objectA sortable image tag for a Rubin Science Platform image.
This class encodes the tag conventions documented in SQR-059. These conventions are specific to the Rubin Science Platform.
- Parameters:
tag (
str)image_type (
RSPImageType)display_name (
str)
Attributes Summary
Architecture of image, if specified.
Base tag name for unknown and alias tags.
XML schema version implemented by this image (only for T&S builds).
XML schema build number (only for T&S builds).
When the image was created, or as close as we can get to that.
Human-readable display name.
Additional information about the image.
Type (release series) of image identified by this tag.
Version number of the RSP build machinery.
The tag itself, unmodified.
Version information as a semantic version.
Methods Summary
alias(tag)Create an alias tag.
from_str(tag)Parse a tag into an
RSPImageTag.to_dict()Serialize to a dictionary representation.
Attributes Documentation
-
date:
Optional[datetime] = None# When the image was created, or as close as we can get to that.
For daily or weekly tags, this can be calculated within a day or week, which is good enough for filtering purposes. Other images are not handled for now, since the upload time is not necessarily when the image was created.
-
image_type:
RSPImageType= <dataclasses._MISSING_TYPE object># Type (release series) of image identified by this tag.
Methods Documentation
- classmethod alias(tag)#
Create an alias tag.
- Parameters:
tag (
str) – Name of the alias tag.- Returns:
The corresponding
RSPImageTag.- Return type:
- classmethod from_str(tag)#
Parse a tag into an
RSPImageTag.- Parameters:
tag (
str) – The tag.- Returns:
The corresponding
RSPImageTagobject.- Return type: