Skip to content

Commit

Permalink
Merge branch 'test'
Browse files Browse the repository at this point in the history
  • Loading branch information
qishiyao committed Dec 23, 2022
2 parents c6a233d + dcad692 commit 7c4cb02
Show file tree
Hide file tree
Showing 49 changed files with 2,337 additions and 405 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
directory: /backend
schedule:
interval: daily
open-pull-requests-limit: 1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ backup/
_output/
.build/
test/
.history
145 changes: 145 additions & 0 deletions backend/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,128 @@ const docTemplate = `{
}
}
}
},
"/api/cne/system/qlb/config": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "配置负载均衡",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"系统"
],
"summary": "配置负载均衡",
"parameters": [
{
"type": "string",
"description": "jwtToken",
"name": "Authorization",
"in": "header"
},
{
"type": "string",
"description": "staticToken",
"name": "X-Auth-Token",
"in": "header"
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "query"
},
{
"type": "string",
"description": "cluster",
"name": "cluster",
"in": "query"
},
{
"type": "string",
"description": "name",
"name": "name",
"in": "query",
"required": true
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/router.response2xx"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/router.response5xx"
}
}
}
},
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "配置负载均衡",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"系统"
],
"summary": "配置负载均衡",
"parameters": [
{
"type": "string",
"description": "jwtToken",
"name": "Authorization",
"in": "header"
},
{
"type": "string",
"description": "staticToken",
"name": "X-Auth-Token",
"in": "header"
},
{
"description": "meta",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.ReqSystemQLB"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/router.response2xx"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/router.response5xx"
}
}
}
}
}
},
"definitions": {
Expand All @@ -725,6 +847,9 @@ const docTemplate = `{
"cluster": {
"type": "string"
},
"force_restart": {
"type": "boolean"
},
"name": {
"type": "string"
},
Expand Down Expand Up @@ -831,6 +956,26 @@ const docTemplate = `{
}
}
},
"model.ReqSystemQLB": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"cluster": {
"type": "string"
},
"ippool": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"model.StringSetting": {
"type": "object",
"properties": {
Expand Down
145 changes: 145 additions & 0 deletions backend/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,128 @@
}
}
}
},
"/api/cne/system/qlb/config": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "配置负载均衡",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"系统"
],
"summary": "配置负载均衡",
"parameters": [
{
"type": "string",
"description": "jwtToken",
"name": "Authorization",
"in": "header"
},
{
"type": "string",
"description": "staticToken",
"name": "X-Auth-Token",
"in": "header"
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "query"
},
{
"type": "string",
"description": "cluster",
"name": "cluster",
"in": "query"
},
{
"type": "string",
"description": "name",
"name": "name",
"in": "query",
"required": true
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/router.response2xx"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/router.response5xx"
}
}
}
},
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "配置负载均衡",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"系统"
],
"summary": "配置负载均衡",
"parameters": [
{
"type": "string",
"description": "jwtToken",
"name": "Authorization",
"in": "header"
},
{
"type": "string",
"description": "staticToken",
"name": "X-Auth-Token",
"in": "header"
},
{
"description": "meta",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.ReqSystemQLB"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/router.response2xx"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/router.response5xx"
}
}
}
}
}
},
"definitions": {
Expand All @@ -716,6 +838,9 @@
"cluster": {
"type": "string"
},
"force_restart": {
"type": "boolean"
},
"name": {
"type": "string"
},
Expand Down Expand Up @@ -822,6 +947,26 @@
}
}
},
"model.ReqSystemQLB": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"cluster": {
"type": "string"
},
"ippool": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"model.StringSetting": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 7c4cb02

Please sign in to comment.