Documentation ¶
Index ¶
- func AppUsageList(ctx echo.Context) error
- func ArchiveContainer(ctx echo.Context) error
- func ChangAppState(ctx echo.Context) error
- func ContainerLog(ctx echo.Context) error
- func ContainerUpdateInfo(ctx echo.Context) error
- func DockerTerminal(ctx echo.Context) error
- func GetContainerState(ctx echo.Context) error
- func GetDockerDaemonConfiguration(ctx echo.Context) error
- func GetDockerNetworks(ctx echo.Context) error
- func InstallApp(ctx echo.Context) error
- func MyAppList(ctx echo.Context) error
- func PutDockerDaemonConfiguration(ctx echo.Context) error
- func ToComposeYAML(ctx echo.Context) error
- func UninstallApp(ctx echo.Context) error
- func UpdateSetting(ctx echo.Context) error
- func YAML(ctx echo.Context, code int, i interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppUsageList ¶
func AppUsageList(ctx echo.Context) error
@Summary my app hardware usage list @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/usage [get]
func ArchiveContainer ¶
func ArchiveContainer(ctx echo.Context) error
NOTE: the API is a temporary and internal API. It will be deleted in the future. the API is for archive v1 app for rebuilt v2 app.
func ChangAppState ¶
func ChangAppState(ctx echo.Context) error
@Summary 修改app状态 @Produce application/json @Accept multipart/form-data @Tags app @Param id path string true "appid" @Param state query string false "是否停止 start stop restart" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/state/{id} [put]
func ContainerLog ¶
func ContainerLog(ctx echo.Context) error
@Summary 查看容器日志 @Produce application/json @Accept application/json @Tags app @Param id path string true "appid" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/logs/{id} [get]
func ContainerUpdateInfo ¶
func ContainerUpdateInfo(ctx echo.Context) error
@Produce application/json @Accept application/json @Tags app @Param id path string true "appid" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/update/{id}/info [get]
func GetContainerState ¶
func GetContainerState(ctx echo.Context) error
@Summary 获取容器状态 @Produce application/json @Accept application/json @Tags app @Param id path string true "容器id" @Param type query string false "type=1" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/state/{id} [get]
func GetDockerDaemonConfiguration ¶
func GetDockerDaemonConfiguration(ctx echo.Context) error
func GetDockerNetworks ¶
func GetDockerNetworks(ctx echo.Context) error
func InstallApp ¶
func InstallApp(ctx echo.Context) error
@Summary 安装app(该接口需要post json数据) @Produce application/json @Accept application/json @Tags app @Param id path int true "id" @Param port formData int true "主端口" @Param tcp formData string false "tcp端口" @Param udp formData string false "udp端口" @Param env formData string false "环境变量" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/install [post]
func MyAppList ¶
func MyAppList(ctx echo.Context) error
@Summary 我的应用列表 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Param index query int false "index" @Param size query int false "size" @Param position query bool false "是否是首页应用" @Success 200 {string} string "ok" @Router /app/my/list [get]
func PutDockerDaemonConfiguration ¶
func PutDockerDaemonConfiguration(ctx echo.Context) error
func ToComposeYAML ¶
func ToComposeYAML(ctx echo.Context) error
func UninstallApp ¶
func UninstallApp(ctx echo.Context) error
@Summary 卸载app @Produce application/json @Accept multipart/form-data @Tags app @Param id path string true "容器id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/uninstall/{id} [delete]
func UpdateSetting ¶
func UpdateSetting(ctx echo.Context) error
@Summary 更新设置 @Produce application/json @Accept multipart/form-data @Tags app @Param id path string true "容器id" @Param shares formData string false "cpu权重" @Param mem formData string false "内存大小MB" @Param restart formData string false "重启策略" @Param label formData string false "应用名称" @Param position formData bool true "是否放到首页" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/update/{id}/setting [put]
Types ¶
This section is empty.