DockerReference¶
- class controller.models.domain.docker.DockerReference(registry, repository, tag, digest)¶
Bases:
object
Parses a Docker reference.
Attributes Summary
Digest, if present.
Registry (Docker API server) hosting the image.
Repository of images (for example,
lsstsqre/sciplat-lab
).Tag, if present.
Methods Summary
from_str
(reference)Parse a Docker reference string into its components.
Attributes Documentation
-
repository:
str
= <dataclasses._MISSING_TYPE object>¶ Repository of images (for example,
lsstsqre/sciplat-lab
).
Methods Documentation
- classmethod from_str(reference)¶
Parse a Docker reference string into its components.
- Parameters:
reference (
str
) – Reference string.- Returns:
Resulting reference.
- Return type:
- Raises:
ValueError – The reference could not be parsed. (Uses
ValueError
so that this can be used as a Pydantic validator.)
-
repository: