mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
45 lines
946 B
Go
45 lines
946 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/glueops/autoglue/cmd"
|
|
"github.com/glueops/autoglue/docs"
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
// @title AutoGlue API
|
|
// @version 1.0
|
|
// @description API for managing K3s clusters across cloud providers
|
|
|
|
// @contact.name GlueOps
|
|
|
|
// @BasePath /api/v1
|
|
// @schemes http https
|
|
|
|
// @securityDefinitions.apikey BearerAuth
|
|
// @in header
|
|
// @name Authorization
|
|
// @description Bearer token authentication
|
|
|
|
// @securityDefinitions.apikey ApiKeyAuth
|
|
// @in header
|
|
// @name X-API-KEY
|
|
// @description User API key
|
|
|
|
// @securityDefinitions.apikey OrgKeyAuth
|
|
// @in header
|
|
// @name X-ORG-KEY
|
|
// @description Org-level key/secret authentication
|
|
|
|
// @securityDefinitions.apikey OrgSecretAuth
|
|
// @in header
|
|
// @name X-ORG-SECRET
|
|
// @description Org-level secret
|
|
|
|
func main() {
|
|
_ = godotenv.Load()
|
|
docs.SwaggerInfo.Host = os.Getenv("SWAGGER_HOST")
|
|
cmd.Execute()
|
|
}
|