You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@stevvooe
On sub-issue of "Separate TagService from manifest service"
According to your proposal in this issue and "TODO" comment in registry.go, I assume you want service to be refactored as, ManifestService
typeManifestServiceinterface {
// 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
typetagServiceinterface {
// 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(tagstring) (bool, error)
// GetByTag retrieves the named manifest, if it exists.GetByTag(tagstring) (*manifest.SignedManifest, error)
}
And remove tagStore field from manifestStore. Am I correct?
Thanks a lot!
@xiekeyang Yes, this is the plan. However, this plan is somewhat ordered. We first must do the distribution.Blob refactor then we can undertake the other parts. I am currently working on this.
@stevvooe
Refactor Blob Service API #519 is done. Then, do you have the plan to start refactoring what we talk above (separation tag service to manifest service)? Thanks a lot!
@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.
Activity
xiekeyang commentedon Apr 30, 2015
@stevvooe
On sub-issue of "Separate TagService from manifest service"
According to your proposal in this issue and "TODO" comment in
registry.go, I assume you want service to be refactored as,ManifestService
tagService
And remove
tagStorefield frommanifestStore. Am I correct?Thanks a lot!
stevvooe commentedon May 1, 2015
@xiekeyang Yes, this is the plan. However, this plan is somewhat ordered. We first must do the
distribution.Blobrefactor then we can undertake the other parts. I am currently working on this.xiekeyang commentedon May 18, 2015
@stevvooe
Refactor Blob Service API #519 is done. Then, do you have the plan to start refactoring what we talk above (separation tag service to manifest service)? Thanks a lot!
stevvooe commentedon May 18, 2015
@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.
xiekeyang commentedon May 19, 2015
@stevvooe Are there any
help-wantedkind of job on refactor issues? Thanks.