2022-01-04 09:32:57 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/dataqueries/Minio.schema.json",
|
|
|
|
|
"title": "Minio datasource",
|
|
|
|
|
"description": "A schema defining minio datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "api",
|
2022-01-04 09:32:57 +00:00
|
|
|
"defaults": {},
|
|
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2022-01-04 09:32:57 +00:00
|
|
|
{ "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": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Object Name",
|
|
|
|
|
"key": "objectName",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter object name"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put_object": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Object Name",
|
|
|
|
|
"key": "objectName",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter object name"
|
|
|
|
|
},
|
|
|
|
|
"contentType": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Content Type",
|
|
|
|
|
"key": "contentType",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter content type"
|
|
|
|
|
},
|
|
|
|
|
"data": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Upload data",
|
|
|
|
|
"key": "data",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter upload data"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"list_objects": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"prefix": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Prefix",
|
|
|
|
|
"key": "prefix",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter prefix"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_get": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Object Name",
|
|
|
|
|
"key": "objectName",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter key"
|
|
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"initialValue": "86400",
|
|
|
|
|
"description": "Enter expires in"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_put": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Object Name",
|
|
|
|
|
"key": "objectName",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter key"
|
|
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2022-01-04 09:32:57 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"initialValue": "86400",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter expires in"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|