37 lines
597 B
Go
37 lines
597 B
Go
|
package apiserver
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
kubeclient "sigs.k8s.io/controller-runtime/pkg/client"
|
||
|
)
|
||
|
|
||
|
type ZServiceHandler struct {
|
||
|
client kubeclient.Client
|
||
|
}
|
||
|
|
||
|
func NewZServiceHandler(client kubeclient.Client) *ZServiceHandler {
|
||
|
return &ZServiceHandler{client: client}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
func (z *ZServiceHandler) HandleStart(c *gin.Context) {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (z *ZServiceHandler) HandleStop(c *gin.Context) {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (z *ZServiceHandler) HandleRestart(c *gin.Context) {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (z *ZServiceHandler) HandleScale(c *gin.Context) {
|
||
|
|
||
|
}
|
||
|
|
||
|
func (z *ZServiceHandler) HandleChangeVersion(c *gin.Context) {
|
||
|
|
||
|
}
|