v1

package
v0.4.4-3-alpha5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppUsageList

func AppUsageList(c *gin.Context)

@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 added in v0.4.5

func ArchiveContainer(c *gin.Context)

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(c *gin.Context)

@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(c *gin.Context)

@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(c *gin.Context)

@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 DockerTerminal

func DockerTerminal(c *gin.Context)

打开docker的terminal

func GetContainerState

func GetContainerState(c *gin.Context)

@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(c *gin.Context)

func GetDockerNetworks

func GetDockerNetworks(c *gin.Context)

func InstallApp

func InstallApp(c *gin.Context)

@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(c *gin.Context)

@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 PropertiesFromQueryParams added in v0.4.2

func PropertiesFromQueryParams(httpCtx *gin.Context) map[string]string

func PutDockerDaemonConfiguration

func PutDockerDaemonConfiguration(c *gin.Context)

func ToComposeYAML added in v0.4.4

func ToComposeYAML(c *gin.Context)

func UninstallApp added in v0.4.2

func UninstallApp(c *gin.Context)

@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(c *gin.Context)

@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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL