DockerReference

class controller.models.domain.docker.DockerReference(registry, repository, tag, digest)

Bases: object

Parses a Docker reference.

Parameters:

Methods Summary

from_str(reference)

Parse a Docker reference string into its components.

Methods Documentation

classmethod from_str(reference)

Parse a Docker reference string into its components.

Parameters:

reference (str) – Reference string.

Returns:

Resulting reference.

Return type:

DockerReference

Raises:

ValueError – The reference could not be parsed. (Uses ValueError so that this can be used as a Pydantic validator.)