Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Distinguish names, refs, and canonical forms #817

Merged
merged 2 commits into from
Oct 31, 2017

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Oct 27, 2017

An image name (e.g., "alpine") is used for different things than an
image ref (e.g., "alpine:3.5"). So, be clear about which we're using.

For some purposes we want to use the canonical form of an image name
or ref; so, make those distinct types as well.

  • Rearrange the types
  • Move into their own package and rename (drop Image from the start, basically)

An image name (e.g., "alpine") is used for different things than an
image ref (e.g., "alpine:3.5"). So, be clear about which we're using.

For some purposes we want to use the canonical form of an image name
or ref; so, make those distinct types as well.
@squaremo squaremo force-pushed the refactor/distinct-image-types branch from 3764145 to 97d1d37 Compare October 30, 2017 15:51
@squaremo squaremo force-pushed the refactor/distinct-image-types branch from 051dee8 to 068f770 Compare October 31, 2017 14:42
@squaremo squaremo changed the title [WIP] Distinguish names, refs, and canonical forms Distinguish names, refs, and canonical forms Oct 31, 2017
Copy link
Contributor

@samb1729 samb1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good typification and repackaging

@squaremo squaremo merged commit c8438ef into master Oct 31, 2017
@squaremo squaremo deleted the refactor/distinct-image-types branch October 31, 2017 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants