mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-13 04:46:46 +00:00
33 lines
607 B
Go
33 lines
607 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
ctrl "sigs.k8s.io/controller-runtime"
|
|
)
|
|
|
|
const querymodeKey = "appQuerymode"
|
|
|
|
// Apps related handlers
|
|
func CreateApps(c *gin.Context) {
|
|
|
|
}
|
|
|
|
func UpdateApps(c *gin.Context) {
|
|
}
|
|
|
|
func GetApps(c *gin.Context) {
|
|
envName := c.Param("envName")
|
|
appName := c.Param("appName")
|
|
queryMode, found := c.GetQuery(querymodeKey)
|
|
if !found {
|
|
panic("no repoUrl in update")
|
|
}
|
|
ctrl.Log.Info("Get an application request for", "envName", envName, "appName", appName, "queryMdoe", queryMode)
|
|
}
|
|
|
|
func ListApps(c *gin.Context) {
|
|
}
|
|
|
|
func DeleteApps(c *gin.Context) {
|
|
}
|