-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Distribution interface refactoring plan #354
Comments
@stevvooe type ManifestService interface {
// Exists returns true if the manifest exists.
Exists(dgst digest.Digest) (bool, error)
// Get retrieves the identified by the digest, if it exists.
Get(dgst digest.Digest) (*manifest.SignedManifest, error)
// Delete removes the manifest, if it exists.
Delete(dgst digest.Digest) error
// Put creates or updates the manifest.
Put(manifest *manifest.SignedManifest) error
} tagService type tagService interface {
// TODO(stevvooe): The methods after this message should be moved to a
// discrete TagService, per active proposals.
// Tags lists the tags under the named repository.
Tags() ([]string, error)
// ExistsByTag returns true if the manifest exists.
ExistsByTag(tag string) (bool, error)
// GetByTag retrieves the named manifest, if it exists.
GetByTag(tag string) (*manifest.SignedManifest, error)
} And remove |
@xiekeyang Yes, this is the plan. However, this plan is somewhat ordered. We first must do the |
@xiekeyang Yes, that is the plan. We may want to decouple the manifest structure first but the ordering is not important. I'm starting this work later this week. |
@stevvooe Are there any |
Over the next few weeks, we need to make several changes to the distribution interfaces to support their role as a client to the registry.
The following is a rough list of the goals we'd like to accomplish:
context.Context
through storage driver method calls (Add golang/x/net/context.Context to storage driver method calls #264)distribution.Layer
todistribution.Blob
from WIP: distribution interface improvements #193. (Refactor Blob Service API #519)TagService
from manifest serviceProvide more flexible service instantiation(not actionable from description)Other issues may be filed to further explain details of these items.
The text was updated successfully, but these errors were encountered: