forked from KubeOperator/KubeOperator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
30 lines (27 loc) · 781 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
//go:generate go-bindata -o ./pkg/i18n/locales.go -pkg i18n ./locales/...
//go:generate swag init
import (
_ "github.com/KubeOperator/KubeOperator/docs"
"github.com/KubeOperator/KubeOperator/pkg/server"
_ "golang.org/x/text/message"
_ "golang.org/x/text/message/catalog"
"log"
)
// @title KubeOperator Restful API
// @version.go 1.0
// @termsOfService http://kubeoperator.io
// @contact.name Fit2cloud Support
// @contact.url https://www.fit2cloud.com
// @contact.email [email protected]
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @BasePath /api/v1
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
func main() {
if err := server.Start(); err != nil {
log.Fatal(err)
}
}