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

refactor: refactor registry interface #67

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

binbin-li
Copy link
Contributor

@binbin-li binbin-li commented Jun 24, 2022

What?

  1. Refactored Lookup API to support returning annotations for signature verficiation as well.
  2. Refactored Put API to do the job linking manifest and signature and upload the registry.
  3. Add a new interface with API to resolve manifests with tags or digests.

Signed-off-by: Binbin Li libinbin@microsoft.com

@binbin-li binbin-li requested a review from a team June 24, 2022 01:59
@binbin-li binbin-li force-pushed the refactor-registry-interface branch from 2c45b72 to e355c40 Compare June 24, 2022 02:27
registry/repository.go Outdated Show resolved Hide resolved
@binbin-li binbin-li force-pushed the refactor-registry-interface branch from e355c40 to e391237 Compare June 24, 2022 03:02
registry/interface.go Outdated Show resolved Hide resolved
registry/repository.go Outdated Show resolved Hide resolved
registry/interface.go Outdated Show resolved Hide resolved
@shizhMSFT
Copy link
Contributor

We also need an interface to resolve manifest descriptors from tag or digest.

We may need

type Repository interface{
    SignatureRepository

    Resolve(ctx context.Context, reference string) (notation.Descriptor, error)
}

@binbin-li binbin-li force-pushed the refactor-registry-interface branch 3 times, most recently from 08bac84 to 17f82a5 Compare June 24, 2022 10:26
@binbin-li binbin-li changed the title [WIP] feat: add new registry interface and renam Link refactor: refactor registry interface Jun 24, 2022
registry/interface.go Outdated Show resolved Hide resolved
registry/repository.go Outdated Show resolved Hide resolved
@binbin-li binbin-li force-pushed the refactor-registry-interface branch from 17f82a5 to e9afd84 Compare June 27, 2022 01:29
Copy link
Contributor

@rgnote rgnote left a comment

Choose a reason for hiding this comment

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

LGTM

registry/interface.go Outdated Show resolved Hide resolved
registry/repository.go Outdated Show resolved Hide resolved
@binbin-li binbin-li force-pushed the refactor-registry-interface branch from e9afd84 to f27ff50 Compare June 27, 2022 02:25
Signed-off-by: Binbin Li <libinbin@microsoft.com>
@binbin-li binbin-li force-pushed the refactor-registry-interface branch from f27ff50 to 940d626 Compare June 27, 2022 12:10
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

3 participants