module
Version:
v0.0.0-...-f23b2cd
Opens a new window with list of versions in this module.
Published: Jul 18, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
kube-go
|
Kubernetes1.24 |
Kubernetes1.25 |
Kubernetes1.26 |
Kubernetes1.27 |
Kubernetes1.28 |
Kubernetes1.29 |
Kubernetes1.30 |
kube-go:v0.1.0 |
✕ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
打造通用kubernetes api
- 基于gin框架的后端api
- 集成client-go
- 集成GinSwagger
- 集成mysql、redis
快速开始
go mod tidy
go build -o ./build/ ./main/main.go
go run main/main.go
查看API文档(测试)
http://127.0.0.1:8080/swagger/index.html
更新API文档
go install github.com/swaggo/swag/cmd/swag@latest
mv $GOPATH/bin/swag /usr/local/go/bin
swag init -g ./main/main.go -o ./docs/swagger
Click to show internal directories.
Click to hide internal directories.