Update mcs to latest minio and mc (#69)

updates code to be compatible with:
- github.com/minio/mc v0.0.0-20200415193718-68b638f2f96c
- github.com/minio/minio v0.0.0-20200415191640-bde0f444dbab

Note: admin_config api is patched temporarily now to
return the target configuration as a raw string due to the
changes done on minio.
This commit is contained in:
César Nieto
2020-04-16 13:56:12 -07:00
committed by GitHub
parent 540ff31784
commit 5c137a8678
19 changed files with 910 additions and 561 deletions

View File

@@ -298,7 +298,7 @@ func init() {
}
}
},
"/buckets/{bucket_name}/events/{name}": {
"/buckets/{bucket_name}/events/{arn}": {
"delete": {
"tags": [
"UserAPI"
@@ -314,9 +314,17 @@ func init() {
},
{
"type": "string",
"name": "name",
"name": "arn",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/notificationDeleteRequest"
}
}
],
"responses": {
@@ -1677,6 +1685,32 @@ func init() {
}
}
},
"notificationDeleteRequest": {
"type": "object",
"required": [
"events",
"prefix",
"suffix"
],
"properties": {
"events": {
"type": "array",
"title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')",
"minLength": 1,
"items": {
"$ref": "#/definitions/notificationEventType"
}
},
"prefix": {
"type": "string",
"title": "filter event associated to the specified prefix"
},
"suffix": {
"type": "string",
"title": "filter event associated to the specified suffix"
}
}
},
"notificationEndpoint": {
"type": "object",
"required": [
@@ -2201,7 +2235,7 @@ func init() {
}
}
},
"/buckets/{bucket_name}/events/{name}": {
"/buckets/{bucket_name}/events/{arn}": {
"delete": {
"tags": [
"UserAPI"
@@ -2217,9 +2251,17 @@ func init() {
},
{
"type": "string",
"name": "name",
"name": "arn",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/notificationDeleteRequest"
}
}
],
"responses": {
@@ -3580,6 +3622,32 @@ func init() {
}
}
},
"notificationDeleteRequest": {
"type": "object",
"required": [
"events",
"prefix",
"suffix"
],
"properties": {
"events": {
"type": "array",
"title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')",
"minLength": 1,
"items": {
"$ref": "#/definitions/notificationEventType"
}
},
"prefix": {
"type": "string",
"title": "filter event associated to the specified prefix"
},
"suffix": {
"type": "string",
"title": "filter event associated to the specified suffix"
}
}
},
"notificationEndpoint": {
"type": "object",
"required": [