Skip to content

Commit 7c4cb02

Browse files
author
qishiyao
committed
Merge branch 'test'
2 parents c6a233d + dcad692 commit 7c4cb02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2337
-405
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: gomod
4-
directory: /
4+
directory: /backend
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ backup/
2929
_output/
3030
.build/
3131
test/
32+
.history

backend/docs/docs.go

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,128 @@ const docTemplate = `{
705705
}
706706
}
707707
}
708+
},
709+
"/api/cne/system/qlb/config": {
710+
"get": {
711+
"security": [
712+
{
713+
"ApiKeyAuth": []
714+
}
715+
],
716+
"description": "配置负载均衡",
717+
"consumes": [
718+
"application/json"
719+
],
720+
"produces": [
721+
"application/json"
722+
],
723+
"tags": [
724+
"系统"
725+
],
726+
"summary": "配置负载均衡",
727+
"parameters": [
728+
{
729+
"type": "string",
730+
"description": "jwtToken",
731+
"name": "Authorization",
732+
"in": "header"
733+
},
734+
{
735+
"type": "string",
736+
"description": "staticToken",
737+
"name": "X-Auth-Token",
738+
"in": "header"
739+
},
740+
{
741+
"type": "string",
742+
"description": "namespace",
743+
"name": "namespace",
744+
"in": "query"
745+
},
746+
{
747+
"type": "string",
748+
"description": "cluster",
749+
"name": "cluster",
750+
"in": "query"
751+
},
752+
{
753+
"type": "string",
754+
"description": "name",
755+
"name": "name",
756+
"in": "query",
757+
"required": true
758+
}
759+
],
760+
"responses": {
761+
"201": {
762+
"description": "Created",
763+
"schema": {
764+
"$ref": "#/definitions/router.response2xx"
765+
}
766+
},
767+
"500": {
768+
"description": "Internal Server Error",
769+
"schema": {
770+
"$ref": "#/definitions/router.response5xx"
771+
}
772+
}
773+
}
774+
},
775+
"post": {
776+
"security": [
777+
{
778+
"ApiKeyAuth": []
779+
}
780+
],
781+
"description": "配置负载均衡",
782+
"consumes": [
783+
"application/json"
784+
],
785+
"produces": [
786+
"application/json"
787+
],
788+
"tags": [
789+
"系统"
790+
],
791+
"summary": "配置负载均衡",
792+
"parameters": [
793+
{
794+
"type": "string",
795+
"description": "jwtToken",
796+
"name": "Authorization",
797+
"in": "header"
798+
},
799+
{
800+
"type": "string",
801+
"description": "staticToken",
802+
"name": "X-Auth-Token",
803+
"in": "header"
804+
},
805+
{
806+
"description": "meta",
807+
"name": "body",
808+
"in": "body",
809+
"required": true,
810+
"schema": {
811+
"$ref": "#/definitions/model.ReqSystemQLB"
812+
}
813+
}
814+
],
815+
"responses": {
816+
"201": {
817+
"description": "Created",
818+
"schema": {
819+
"$ref": "#/definitions/router.response2xx"
820+
}
821+
},
822+
"500": {
823+
"description": "Internal Server Error",
824+
"schema": {
825+
"$ref": "#/definitions/router.response5xx"
826+
}
827+
}
828+
}
829+
}
708830
}
709831
},
710832
"definitions": {
@@ -725,6 +847,9 @@ const docTemplate = `{
725847
"cluster": {
726848
"type": "string"
727849
},
850+
"force_restart": {
851+
"type": "boolean"
852+
},
728853
"name": {
729854
"type": "string"
730855
},
@@ -831,6 +956,26 @@ const docTemplate = `{
831956
}
832957
}
833958
},
959+
"model.ReqSystemQLB": {
960+
"type": "object",
961+
"required": [
962+
"namespace"
963+
],
964+
"properties": {
965+
"cluster": {
966+
"type": "string"
967+
},
968+
"ippool": {
969+
"type": "string"
970+
},
971+
"name": {
972+
"type": "string"
973+
},
974+
"namespace": {
975+
"type": "string"
976+
}
977+
}
978+
},
834979
"model.StringSetting": {
835980
"type": "object",
836981
"properties": {

backend/docs/swagger.json

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,128 @@
696696
}
697697
}
698698
}
699+
},
700+
"/api/cne/system/qlb/config": {
701+
"get": {
702+
"security": [
703+
{
704+
"ApiKeyAuth": []
705+
}
706+
],
707+
"description": "配置负载均衡",
708+
"consumes": [
709+
"application/json"
710+
],
711+
"produces": [
712+
"application/json"
713+
],
714+
"tags": [
715+
"系统"
716+
],
717+
"summary": "配置负载均衡",
718+
"parameters": [
719+
{
720+
"type": "string",
721+
"description": "jwtToken",
722+
"name": "Authorization",
723+
"in": "header"
724+
},
725+
{
726+
"type": "string",
727+
"description": "staticToken",
728+
"name": "X-Auth-Token",
729+
"in": "header"
730+
},
731+
{
732+
"type": "string",
733+
"description": "namespace",
734+
"name": "namespace",
735+
"in": "query"
736+
},
737+
{
738+
"type": "string",
739+
"description": "cluster",
740+
"name": "cluster",
741+
"in": "query"
742+
},
743+
{
744+
"type": "string",
745+
"description": "name",
746+
"name": "name",
747+
"in": "query",
748+
"required": true
749+
}
750+
],
751+
"responses": {
752+
"201": {
753+
"description": "Created",
754+
"schema": {
755+
"$ref": "#/definitions/router.response2xx"
756+
}
757+
},
758+
"500": {
759+
"description": "Internal Server Error",
760+
"schema": {
761+
"$ref": "#/definitions/router.response5xx"
762+
}
763+
}
764+
}
765+
},
766+
"post": {
767+
"security": [
768+
{
769+
"ApiKeyAuth": []
770+
}
771+
],
772+
"description": "配置负载均衡",
773+
"consumes": [
774+
"application/json"
775+
],
776+
"produces": [
777+
"application/json"
778+
],
779+
"tags": [
780+
"系统"
781+
],
782+
"summary": "配置负载均衡",
783+
"parameters": [
784+
{
785+
"type": "string",
786+
"description": "jwtToken",
787+
"name": "Authorization",
788+
"in": "header"
789+
},
790+
{
791+
"type": "string",
792+
"description": "staticToken",
793+
"name": "X-Auth-Token",
794+
"in": "header"
795+
},
796+
{
797+
"description": "meta",
798+
"name": "body",
799+
"in": "body",
800+
"required": true,
801+
"schema": {
802+
"$ref": "#/definitions/model.ReqSystemQLB"
803+
}
804+
}
805+
],
806+
"responses": {
807+
"201": {
808+
"description": "Created",
809+
"schema": {
810+
"$ref": "#/definitions/router.response2xx"
811+
}
812+
},
813+
"500": {
814+
"description": "Internal Server Error",
815+
"schema": {
816+
"$ref": "#/definitions/router.response5xx"
817+
}
818+
}
819+
}
820+
}
699821
}
700822
},
701823
"definitions": {
@@ -716,6 +838,9 @@
716838
"cluster": {
717839
"type": "string"
718840
},
841+
"force_restart": {
842+
"type": "boolean"
843+
},
719844
"name": {
720845
"type": "string"
721846
},
@@ -822,6 +947,26 @@
822947
}
823948
}
824949
},
950+
"model.ReqSystemQLB": {
951+
"type": "object",
952+
"required": [
953+
"namespace"
954+
],
955+
"properties": {
956+
"cluster": {
957+
"type": "string"
958+
},
959+
"ippool": {
960+
"type": "string"
961+
},
962+
"name": {
963+
"type": "string"
964+
},
965+
"namespace": {
966+
"type": "string"
967+
}
968+
}
969+
},
825970
"model.StringSetting": {
826971
"type": "object",
827972
"properties": {

0 commit comments

Comments
 (0)