v1

package
v1.2.2-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

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 DockerTerminal

func DockerTerminal(ctx echo.Context) error

打开docker的terminal

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

func ToComposeYAML(ctx echo.Context) error

func UninstallApp added in v0.4.2

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]

func YAML added in v0.4.16

func YAML(ctx echo.Context, code int, i interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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