mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
Add Zenodo file source template documentation
This commit is contained in:
@@ -399,6 +399,19 @@ configuration).
|
||||
|
||||

|
||||
|
||||
#### `zenodo`
|
||||
|
||||
The syntax for the `configuration` section of `zenodo` templates looks like this.
|
||||
|
||||

|
||||
|
||||
At runtime, after the `configuration` template is expanded, the resulting dictionary
|
||||
passed to Galaxy's file source plugin infrastructure looks like this and should match a subset
|
||||
of what you'd be able to add directly to `file_sources_conf.yml` (Galaxy's global file source
|
||||
configuration).
|
||||
|
||||

|
||||
|
||||
### YAML Syntax
|
||||
|
||||

|
||||
@@ -471,6 +484,14 @@ and you are comfortable with it storing your user's secrets.
|
||||
|
||||

|
||||
|
||||
#### Allow Users to Define Zenodo as File Source
|
||||
|
||||
```{literalinclude} ../../../lib/galaxy/files/templates/examples/production_zenodo.yaml
|
||||
:language: yaml
|
||||
```
|
||||
|
||||

|
||||
|
||||
### Production OAuth 2.0 File Source Templates
|
||||
|
||||
Unlike the examples in the previous section. These examples will require a bit of
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 570 KiB After Width: | Height: | Size: 651 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
@@ -23,6 +23,8 @@ from galaxy.files.templates.models import (
|
||||
S3FSFileSourceTemplateConfiguration,
|
||||
WebdavFileSourceConfiguration,
|
||||
WebdavFileSourceTemplateConfiguration,
|
||||
ZenodoFileSourceConfiguration,
|
||||
ZenodoFileSourceTemplateConfiguration,
|
||||
)
|
||||
from galaxy.objectstore.templates.models import (
|
||||
AwsS3ObjectStoreConfiguration,
|
||||
@@ -69,6 +71,8 @@ class_to_diagram = {
|
||||
eLabFTWFileSourceConfiguration: "file_source_elabftw_configuration",
|
||||
InvenioFileSourceTemplateConfiguration: "file_source_invenio_configuration_template",
|
||||
InvenioFileSourceConfiguration: "file_source_invenio_configuration",
|
||||
ZenodoFileSourceTemplateConfiguration: "file_source_zenodo_configuration_template",
|
||||
ZenodoFileSourceConfiguration: "file_source_zenodo_configuration",
|
||||
}
|
||||
|
||||
for clazz, diagram_name in class_to_diagram.items():
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
Reference in New Issue
Block a user