Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ociRef.NewImageDestination to ociRef.NewLayoutDestination #75

Closed
runcom opened this issue Sep 6, 2016 · 8 comments
Closed

Rename ociRef.NewImageDestination to ociRef.NewLayoutDestination #75

runcom opened this issue Sep 6, 2016 · 8 comments

Comments

@runcom
Copy link
Member

runcom commented Sep 6, 2016

Under package oci there will be also an OCI image destination which will support fetching images (like Docker) from registries (one day...)

It makes sense to me to rename the functions now so we don't really break so many people (and since a lot is changing these days...)

@mtrmac WDYT?

@mtrmac
Copy link
Collaborator

mtrmac commented Sep 6, 2016

Sure, let’s do it now. Though OCIImageLayoutDestination is a bit of a mouthful; would just OCIImageDestination work? Or OCIDirectoryDestination to be specific that this is unpacked, not a single file, nor an installed image.

@runcom
Copy link
Member Author

runcom commented Sep 6, 2016

OCILayoutDestination, sounds good?

@runcom runcom changed the title Rename OCIDestination to OCIImageLayoutDestination Rename OCIDestination to OCILayoutDestination Sep 6, 2016
@mtrmac
Copy link
Collaborator

mtrmac commented Sep 6, 2016

Works for me.

@runcom
Copy link
Member Author

runcom commented Sep 7, 2016

so there is oci.NewReference which then can do ociRef.NewImageDestination - I'll do ociRef.NewLayoutDestination

@runcom runcom changed the title Rename OCIDestination to OCILayoutDestination Rename ociRef.NewImageDestination to ociRef.NewLayoutDestination Sep 7, 2016
@mtrmac
Copy link
Collaborator

mtrmac commented Sep 7, 2016

That would not conform to ImageReference, and anyway an ImageReference to a local directory and an ImageReference to a remote registry are different things with different concepts and semantics.

It is perfectly fine to have them in the same package, but they should be separate ImageTransports with separate ImageReference implementations.

@mtrmac
Copy link
Collaborator

mtrmac commented Sep 7, 2016

i.e. oci{Layout,Registry}{Transport,Reference}' types. The references can be of course created using helper functions (i.e. without going through theTransports),oci.NewLayoutReferenceandoci.NewRegistryReference`.

@runcom
Copy link
Member Author

runcom commented Sep 7, 2016

oci.NewLayoutReferenceandoci.NewRegistryReference`.

👍

@runcom
Copy link
Member Author

runcom commented Sep 7, 2016

@mtrmac re-thought about this, making a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants