Documentation
¶
Index ¶
- func ErrorHandlerMiddleware() app.HandlerFunc
- type ApiResponse
- type BaseHandler
- func (h *BaseHandler) AddApplicationHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) AddNodeHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) AppRepository() *repository.AppRepository
- func (h *BaseHandler) DashboardStatsHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DeleteApplicationHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DeleteNodeHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DeleteServiceHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerInspect(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerLog(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerRemove(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerRestart(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerStart(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainerStop(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerContainers(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerImageInspect(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerImagePullAuto(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerImagePushTo(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerImages(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerInfo(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerList(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerNetworks(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) DockerProxy() *docker.DockerProxy
- func (h *BaseHandler) DockerVolumes(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetApplicationHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetApplicationListHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetApplicationPageHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetNodeHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetNodeListHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetNodePageHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetRegistryHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) GetServicePageHandler(ctx context.Context, c *app.RequestContext)
- func (b *BaseHandler) HandleDockerComposeConfig(ctx context.Context, c *app.RequestContext)
- func (b *BaseHandler) HandleDockerComposeDeploy(ctx context.Context, c *app.RequestContext)
- func (b *BaseHandler) HandleDockerComposeUndeploy(ctx context.Context, c *app.RequestContext)
- func (b *BaseHandler) HandleDockerProxy(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) HandleFileUpload(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) HandleHealthz(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) KvRepository() *repository.KvRepository
- func (h *BaseHandler) NodeManager() *node.NodeManager
- func (h *BaseHandler) NodeRepository() *repository.NodeRepository
- func (h *BaseHandler) SaveServiceHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) ServiceRepository() *repository.ServiceRepository
- func (h *BaseHandler) SignalRServer() *hub.SignalRServer
- func (h *BaseHandler) StaticDataPath() string
- func (h *BaseHandler) Tar(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) UpdateApplicationHandler(ctx context.Context, c *app.RequestContext)
- func (h *BaseHandler) UpdateNodeHandler(ctx context.Context, c *app.RequestContext)
- type CopyWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandlerMiddleware ¶
func ErrorHandlerMiddleware() app.HandlerFunc
Types ¶
type ApiResponse ¶
type ApiResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
func EmptyResponse ¶
func EmptyResponse() *ApiResponse
func ErrorResponse ¶
func ErrorResponse(code int, message string) *ApiResponse
func FailResponse ¶
func FailResponse(message string) *ApiResponse
func NewApiResponse ¶
func NewApiResponse(code int, message string, data interface{}) *ApiResponse
func SuccessResponse ¶
func SuccessResponse(data interface{}) *ApiResponse
type BaseHandler ¶
type BaseHandler struct {
// contains filtered or unexported fields
}
func NewBaseHandler ¶
func NewBaseHandler(appCtx *ctx.AppCtx) *BaseHandler
func (*BaseHandler) AddApplicationHandler ¶
func (h *BaseHandler) AddApplicationHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) AddNodeHandler ¶
func (h *BaseHandler) AddNodeHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) AppRepository ¶
func (h *BaseHandler) AppRepository() *repository.AppRepository
func (*BaseHandler) DashboardStatsHandler ¶
func (h *BaseHandler) DashboardStatsHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DeleteApplicationHandler ¶
func (h *BaseHandler) DeleteApplicationHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DeleteNodeHandler ¶
func (h *BaseHandler) DeleteNodeHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DeleteServiceHandler ¶
func (h *BaseHandler) DeleteServiceHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerInspect ¶
func (h *BaseHandler) DockerContainerInspect(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerLog ¶
func (h *BaseHandler) DockerContainerLog(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerRemove ¶
func (h *BaseHandler) DockerContainerRemove(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerRestart ¶
func (h *BaseHandler) DockerContainerRestart(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerStart ¶
func (h *BaseHandler) DockerContainerStart(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainerStop ¶
func (h *BaseHandler) DockerContainerStop(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerContainers ¶
func (h *BaseHandler) DockerContainers(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerImageInspect ¶
func (h *BaseHandler) DockerImageInspect(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerImagePullAuto ¶
func (h *BaseHandler) DockerImagePullAuto(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerImagePushTo ¶
func (h *BaseHandler) DockerImagePushTo(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerImages ¶
func (h *BaseHandler) DockerImages(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerInfo ¶
func (h *BaseHandler) DockerInfo(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerList ¶
func (h *BaseHandler) DockerList(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerNetworks ¶
func (h *BaseHandler) DockerNetworks(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) DockerProxy ¶
func (h *BaseHandler) DockerProxy() *docker.DockerProxy
func (*BaseHandler) DockerVolumes ¶
func (h *BaseHandler) DockerVolumes(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetApplicationHandler ¶
func (h *BaseHandler) GetApplicationHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetApplicationListHandler ¶
func (h *BaseHandler) GetApplicationListHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetApplicationPageHandler ¶
func (h *BaseHandler) GetApplicationPageHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetNodeHandler ¶
func (h *BaseHandler) GetNodeHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetNodeListHandler ¶
func (h *BaseHandler) GetNodeListHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetNodePageHandler ¶
func (h *BaseHandler) GetNodePageHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetRegistryHandler ¶
func (h *BaseHandler) GetRegistryHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) GetServicePageHandler ¶
func (h *BaseHandler) GetServicePageHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleDockerComposeConfig ¶
func (b *BaseHandler) HandleDockerComposeConfig(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleDockerComposeDeploy ¶
func (b *BaseHandler) HandleDockerComposeDeploy(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleDockerComposeUndeploy ¶
func (b *BaseHandler) HandleDockerComposeUndeploy(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleDockerProxy ¶
func (b *BaseHandler) HandleDockerProxy(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleFileUpload ¶
func (h *BaseHandler) HandleFileUpload(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) HandleHealthz ¶
func (h *BaseHandler) HandleHealthz(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) KvRepository ¶
func (h *BaseHandler) KvRepository() *repository.KvRepository
func (*BaseHandler) NodeManager ¶
func (h *BaseHandler) NodeManager() *node.NodeManager
func (*BaseHandler) NodeRepository ¶
func (h *BaseHandler) NodeRepository() *repository.NodeRepository
func (*BaseHandler) SaveServiceHandler ¶
func (h *BaseHandler) SaveServiceHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) ServiceRepository ¶
func (h *BaseHandler) ServiceRepository() *repository.ServiceRepository
func (*BaseHandler) SignalRServer ¶
func (h *BaseHandler) SignalRServer() *hub.SignalRServer
func (*BaseHandler) StaticDataPath ¶
func (h *BaseHandler) StaticDataPath() string
func (*BaseHandler) Tar ¶
func (h *BaseHandler) Tar(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) UpdateApplicationHandler ¶
func (h *BaseHandler) UpdateApplicationHandler(ctx context.Context, c *app.RequestContext)
func (*BaseHandler) UpdateNodeHandler ¶
func (h *BaseHandler) UpdateNodeHandler(ctx context.Context, c *app.RequestContext)
type CopyWriter ¶
Click to show internal directories.
Click to hide internal directories.