mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 06:57:40 +00:00
135 lines
3.6 KiB
JSON
135 lines
3.6 KiB
JSON
|
|
{
|
||
|
|
"$schema": "https://json-schema.org/",
|
||
|
|
"$id": "https://tooljet.io/dataqueries/Minio.schema.json",
|
||
|
|
"title": "Minio datasource",
|
||
|
|
"description": "A schema defining minio datasource",
|
||
|
|
"type": "object",
|
||
|
|
"defaults": {},
|
||
|
|
"properties": {
|
||
|
|
"operation": {
|
||
|
|
"$label": "Operation",
|
||
|
|
"$key": "operation",
|
||
|
|
"type": "dropdown-component-flip",
|
||
|
|
"description": "Single select dropdown for operation",
|
||
|
|
"$options": [
|
||
|
|
{ "value": "get_object", "name": "Read object" },
|
||
|
|
{ "value": "put_object", "name": "Put object" },
|
||
|
|
{ "value": "list_buckets", "name": "List buckets" },
|
||
|
|
{ "value": "list_objects", "name": "List objects in a bucket" },
|
||
|
|
{ "value": "signed_url_for_get", "name": "Presigned url for download" },
|
||
|
|
{ "value": "signed_url_for_put", "name": "Presigned url for upload" }
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"get_object": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Object Name",
|
||
|
|
"$key": "objectName",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter object name"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"put_object": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Object Name",
|
||
|
|
"$key": "objectName",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter object name"
|
||
|
|
},
|
||
|
|
"contentType": {
|
||
|
|
"$label": "Content Type",
|
||
|
|
"$key": "contentType",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter content type"
|
||
|
|
},
|
||
|
|
"data": {
|
||
|
|
"$label": "Upload data",
|
||
|
|
"$key": "data",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter upload data"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"list_objects": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"prefix": {
|
||
|
|
"$label": "Prefix",
|
||
|
|
"$key": "prefix",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter prefix"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"signed_url_for_get": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Object Name",
|
||
|
|
"$key": "objectName",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
},
|
||
|
|
"expiresIn": {
|
||
|
|
"$label": "Expires in",
|
||
|
|
"$key": "expiresIn",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"initialValue": "86400",
|
||
|
|
"description": "Enter expires in"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"signed_url_for_put": {
|
||
|
|
"bucket": {
|
||
|
|
"$label": "Bucket",
|
||
|
|
"$key": "bucket",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter bucket"
|
||
|
|
},
|
||
|
|
"key": {
|
||
|
|
"$label": "Object Name",
|
||
|
|
"$key": "objectName",
|
||
|
|
"type": "codehinter",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter key"
|
||
|
|
},
|
||
|
|
"expiresIn": {
|
||
|
|
"$label": "Expires in",
|
||
|
|
"$key": "expiresIn",
|
||
|
|
"type": "codehinter",
|
||
|
|
"initialValue": "86400",
|
||
|
|
"lineNumbers": false,
|
||
|
|
"description": "Enter expires in"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|