Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerConfig ¶
type KubeConfigData ¶
type KubeConfigData struct {
Path string `json:"path"`
}
type KubeconfigInfo ¶
type KubeconfigInfo struct {
KubeConfig KubeConfigData `json:"kubeconfig"`
}
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(cfg *RouterConfig) *Router
func (*Router) Inject ¶
func (r *Router) Inject(router *gin.RouterGroup)
type RouterConfig ¶
type SyncthingConfig ¶
type SyncthingScript ¶
type ZgCtlConfig ¶
type ZgCtlHandler ¶
type ZgCtlHandler interface { // StartDevMode is a gin handler that starts dev mode. StartDevMode(*gin.Context) // StopDevMode is a gin handler that stops dev mode. StopDevMode(*gin.Context) // DevImages is a gin handler that provides image list for dev mode. DevImages(*gin.Context) // ConfigKubeconfig is a gin handler that stores relations between env and kubeconfig. ConfigKubeconfig(*gin.Context) }
func NewHandlers ¶
func NewHandlers(cfg *HandlerConfig) ZgCtlHandler
type ZgCtler ¶
type ZgCtler interface { // StartDevMode starts dev mode. StartDevMode(ctx context.Context, projectName, envName, serviceName, dataDir, devImage string) error // StopDevMode stops dev mode. StopDevMode(ctx context.Context, projectName, envName, serviceName string) error // DevImages provides image list for dev mode. DevImages() []string // ConfigKubeconfig stores relations between env and kubeconfig. ConfigKubeconfig(projectName, envName, kubeconfigPath string) error }
func NewZgCtl ¶
func NewZgCtl(cfg *ZgCtlConfig) ZgCtler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.