Skip to content

Commit

Permalink
feat: object storage add filter field (#1412)
Browse files Browse the repository at this point in the history
* feat: object storage add filter field

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: object storage add logger

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: GetObjectMetadata return isExist

Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi committed Jun 28, 2023
1 parent 993841e commit 4ad950a
Show file tree
Hide file tree
Showing 13 changed files with 386 additions and 152 deletions.
136 changes: 98 additions & 38 deletions api/manager/docs.go
Expand Up @@ -3692,9 +3692,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"download_rate_limit": {
"type": "integer"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3713,6 +3719,9 @@ const docTemplate = `{
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"url": {
"type": "string"
},
Expand All @@ -3724,52 +3733,22 @@ const docTemplate = `{
}
}
},
"model.Assertion": {
"model.Config": {
"type": "object",
"properties": {
"key": {
"bio": {
"type": "string"
},
"policy": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"policyMap": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
"created_at": {
"type": "string"
},
"rm": {},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
"id": {
"type": "integer"
},
"value": {
"type": "string"
}
}
},
"model.AssertionMap": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/model.Assertion"
}
},
"model.Config": {
"type": "object",
"properties": {
"bio": {
"name": {
"type": "string"
},
"name": {
"updated_at": {
"type": "string"
},
"user_id": {
Expand All @@ -3793,6 +3772,12 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"result": {
"$ref": "#/definitions/model.JSONMap"
},
Expand All @@ -3817,6 +3802,9 @@ const docTemplate = `{
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"user_id": {
"type": "integer"
}
Expand All @@ -3834,20 +3822,35 @@ const docTemplate = `{
"client_secret": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"redirect_url": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"model.Scheduler": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
Expand All @@ -3868,6 +3871,9 @@ const docTemplate = `{
},
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3886,6 +3892,12 @@ const docTemplate = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -3909,6 +3921,9 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SeedPeerCluster"
}
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3918,6 +3933,12 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3926,6 +3947,9 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SecurityRule"
}
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -3935,9 +3959,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"domain": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
Expand All @@ -3949,18 +3979,27 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.SecurityGroup"
}
},
"updated_at": {
"type": "string"
}
}
},
"model.SeedPeer": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"download_port": {
"type": "integer"
},
"host_name": {
"type": "string"
},
"id": {
"type": "integer"
},
"idc": {
"type": "string"
},
Expand All @@ -3987,6 +4026,9 @@ const docTemplate = `{
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -4002,6 +4044,12 @@ const docTemplate = `{
"config": {
"$ref": "#/definitions/model.JSONMap"
},
"created_at": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_default": {
"type": "boolean"
},
Expand All @@ -4025,6 +4073,9 @@ const docTemplate = `{
},
"security_group_id": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
Expand All @@ -4037,9 +4088,15 @@ const docTemplate = `{
"bio": {
"type": "string"
},
"created_at": {
"type": "string"
},
"email": {
"type": "string"
},
"id": {
"type": "integer"
},
"location": {
"type": "string"
},
Expand All @@ -4051,6 +4108,9 @@ const docTemplate = `{
},
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
Expand Down

0 comments on commit 4ad950a

Please sign in to comment.