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

Allow Fetcher to dynamically change where artifacts are retrieved from based on the scheme from the Registry. #31

Merged
merged 6 commits into from
Oct 8, 2023

Conversation

k1LoW
Copy link
Collaborator

@k1LoW k1LoW commented Oct 6, 2023

(I would like you to review #30 first.)

ref: #16

Allow Fetcher to dynamically change where artifacts are retrieved from based on the scheme from the Registry.

Currently not available as there is only one registry, but s3:// and gcs:// are also supported as examples.

@k1LoW k1LoW mentioned this pull request Oct 6, 2023
_ registory.Registory = (*GithubRelease)(nil)
_ storage.Fetcher = (*GithubRelease)(nil)
)
var _ registory.Registory = (*GithubRelease)(nil)
Copy link
Owner

Choose a reason for hiding this comment

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

What do you mean this line for syntax?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To ensure at compile time that GithubRelease satisfies the registry.Registry.

On another note, I'm typoing...

Copy link
Owner

Choose a reason for hiding this comment

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

I see, it's a type assertion to an interface.

@k1LoW k1LoW force-pushed the create-fectcher-github-release branch from d11b3cf to 202c7c8 Compare October 7, 2023 14:49
@linyows linyows merged commit 6a220ca into linyows:main Oct 8, 2023
4 checks passed
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.

2 participants