Skip to content

Add error return to Repository method on Registry#174

Merged
stevvooe merged 1 commit intodistribution:masterfrom
stevvooe:registry-interface-improvements
Feb 16, 2015
Merged

Add error return to Repository method on Registry#174
stevvooe merged 1 commit intodistribution:masterfrom
stevvooe:registry-interface-improvements

Conversation

@stevvooe
Copy link
Copy Markdown
Collaborator

The method (Registry).Repository may now return an error. This is too allow
certain implementationt to validate the name or opt to not return a repository
under certain conditions.

In conjunction with this change, error declarations have been moved into a
single file in the distribution package. Several error declarations that had
remained in the storage package have been moved into distribution, as well. The
declarations for Layer and LayerUpload have also been moved into the main
registry file, as a result.

Closes #171.

Signed-off-by: Stephen J Day stephen.day@docker.com

The method (Registry).Repository may now return an error. This is too allow
certain implementationt to validate the name or opt to not return a repository
under certain conditions.

In conjunction with this change, error declarations have been moved into a
single file in the distribution package. Several error declarations that had
remained in the storage package have been moved into distribution, as well. The
declarations for Layer and LayerUpload have also been moved into the main
registry file, as a result.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
@stevvooe stevvooe added this to the Registry/Beta milestone Feb 14, 2015
@stevvooe
Copy link
Copy Markdown
Collaborator Author

cc @jlhawn @icecrime @dmcgowan @dmp42

@dmp42
Copy link
Copy Markdown
Contributor

dmp42 commented Feb 14, 2015

LGTM

1 similar comment
@dmcgowan
Copy link
Copy Markdown
Collaborator

LGTM

stevvooe added a commit that referenced this pull request Feb 16, 2015
Add error return to Repository method on Registry
@stevvooe stevvooe merged commit 61fb9ae into distribution:master Feb 16, 2015
@stevvooe stevvooe deleted the registry-interface-improvements branch February 16, 2015 20:05
@stevvooe stevvooe modified the milestones: Registry/2.0.0-beta, Registry/2.0 Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting a Repository from a Registry object should have an error

3 participants