Skip to content

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

@sbrunato

Description

@sbrunato

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
  download_s3: !plugin
      type: AwsDownload
      match: 
        href: s3://
  auth: !plugin
      type: GenericAuth
      match: 
        roles:
          - archive
  auth_s3: !plugin
      type: AwsAuth
      match: 
        href: s3://

And use plugins topics name beginning to check their type (e.g. topic.startswith("auth")).

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

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions