Represents a unique identifier for a Docker registry
Initializes a new instance of the DockerSourceId struct.
Gets the ID format.
Returns the Docker registry name if Format is DockerSourceIdFormat.ProGetDockerRegistry; otherwise throws.
Returns the credential name if Format is DockerSourceIdFormat.ProGetDockerRegistry; otherwise throws.
This effectively wraps a string that can take one of two formats and provides helper methods.
Example strings include:
global::ProGet/MyDockerRegistry [Format=ProGetDockerRegistry]
registry::MyDockerRegistryName [Format=ProGetDockerRegistry]
global::ProGetOtherInstance/MyDockerRegistryName [Format=ProGetDockerRegistry]
MyNuGetOrgResource [Format=SecureResource]