Skip to content

Allow multiple download or auth plugins for a single provider #1617

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

Open
sbrunato opened this issue Apr 16, 2025 · 0 comments
Open

Allow multiple download or auth plugins for a single provider #1617

sbrunato opened this issue Apr 16, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@sbrunato
Copy link
Collaborator

Allow multiple download or auth plugins for a single provider:

!provider
  name: foo_provider
  search: !plugin
    type: StacSearch
    [...]
  download:
    - !plugin
      type: HTTPDownload
      match: 
        href: https://[-\w]+.foo.bar
    - !plugin
      type: AwsDownload
      match: 
        href: s3://
  auth:
    - !plugin
      type: GenericAuth
      match: 
        roles:
          - archive
    - !plugin
      type: AwsAuth
      match: 
        href: s3://

Use matching_url to choose appropriate plugin when using EOProduct.register_downloader method.

This feature will be useful when Asset.register_downloader is available.

@sbrunato sbrunato added the enhancement New feature or request label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant