Documentation ¶
Index ¶
- func AddPartition(c *gin.Context)
- func AppInfo(c *gin.Context)
- func AppList(c *gin.Context)
- func AppListResourceUsage()
- func AppUsageList(c *gin.Context)
- func CategoryList(c *gin.Context)
- func ChangAppState(c *gin.Context)
- func Chang_User_Info(c *gin.Context)
- func Chang_User_Name(c *gin.Context)
- func Chang_User_Pwd(c *gin.Context)
- func CheckVersion(c *gin.Context)
- func ContainerInfo(c *gin.Context)
- func ContainerLog(c *gin.Context)
- func ContainerRelyInfo(c *gin.Context)
- func ContainerUpdateInfo(c *gin.Context)
- func Copy(stop chan int, from, to string) error
- func CupInfo(c *gin.Context)
- func DDNSAddConfig(c *gin.Context)
- func DDNSConfigList(c *gin.Context)
- func DDNSDelete(c *gin.Context)
- func DDNSGetDomainList(c *gin.Context)
- func DDNSGetIP(c *gin.Context)
- func DDNSPing(c *gin.Context)
- func DeleteDisk(c *gin.Context)
- func DeleteShareDirDel(c *gin.Context)
- func DeleteShortcutsDelete(c *gin.Context)
- func DirPath(c *gin.Context)
- func DiskInfo(c *gin.Context)
- func DockerTerminal(c *gin.Context)
- func FormatDisk(c *gin.Context)
- func FormatDiskType(c *gin.Context)
- func GetCasaOSErrorLogs(c *gin.Context)
- func GetCasaOSPort(c *gin.Context)
- func GetContainerState(c *gin.Context)
- func GetDiskCheck(c *gin.Context)
- func GetDiskInfo(c *gin.Context)
- func GetDiskList(c *gin.Context)
- func GetDockerInstallConfig(c *gin.Context)
- func GetDownloadFile(c *gin.Context)
- func GetFilerContent(c *gin.Context)
- func GetGuideCheck(c *gin.Context)
- func GetInstallSpeed(c *gin.Context)
- func GetLocalFile(c *gin.Context)
- func GetPlugInDisks(c *gin.Context)
- func GetPort(c *gin.Context)
- func GetSearchList(c *gin.Context)
- func GetShareDirInfo(c *gin.Context)
- func GetShareDirList(c *gin.Context)
- func GetShortcutsList(c *gin.Context)
- func GetSyncConfig(c *gin.Context)
- func GetSystemConfig(c *gin.Context)
- func GetSystemConfigDebug(c *gin.Context)
- func GetTaskList(c *gin.Context)
- func GetWidgetConfig(c *gin.Context)
- func Info(c *gin.Context)
- func InstallApp(c *gin.Context)
- func Login(c *gin.Context)
- func MemInfo(c *gin.Context)
- func MkdirAll(c *gin.Context)
- func MyAppList(c *gin.Context)
- func NetInfo(c *gin.Context)
- func NotifyWS(c *gin.Context)
- func PortCheck(c *gin.Context)
- func PostCreateFile(c *gin.Context)
- func PostDiskUmount(c *gin.Context)
- func PostFileUpload(c *gin.Context)
- func PostKillCasaOS(c *gin.Context)
- func PostMountDisk(c *gin.Context)
- func PostSetSystemConfig(c *gin.Context)
- func PostSetWidgetConfig(c *gin.Context)
- func PostShareDirAdd(c *gin.Context)
- func PostShortcutsAdd(c *gin.Context)
- func PostTaskAdd(c *gin.Context)
- func PutCasaOSPort(c *gin.Context)
- func PutFileMove(c *gin.Context)
- func PutNotifyRead(c *gin.Context)
- func PutShareDirEdit(c *gin.Context)
- func PutShortcutsEdit(c *gin.Context)
- func PutTaskMarkerCompletion(c *gin.Context)
- func PutTaskUpdate(c *gin.Context)
- func RemovePartition(c *gin.Context)
- func RenamePath(c *gin.Context)
- func Set_Name_Pwd(c *gin.Context)
- func ShareAppFile(c *gin.Context)
- func SpeedPush(c *gin.Context)
- func SyncToSyncthing(c *gin.Context)
- func Sys(c *gin.Context)
- func SysInfo(c *gin.Context)
- func SystemUpdate(c *gin.Context)
- func UnInstallApp(c *gin.Context)
- func Up_Load_Head(c *gin.Context)
- func UpdateSetting(c *gin.Context)
- func UserInfo(c *gin.Context)
- func WsSsh(c *gin.Context)
- func ZeroTierCreateNetwork(c *gin.Context)
- func ZeroTierDeleteNetwork(c *gin.Context)
- func ZeroTierEdit(c *gin.Context)
- func ZeroTierGetNetworkGetInfo(c *gin.Context)
- func ZeroTierGetNetworkList(c *gin.Context)
- func ZeroTierGetToken(c *gin.Context)
- func ZeroTierIsNeedLogin(c *gin.Context)
- func ZeroTierJoinNetwork(c *gin.Context)
- func ZeroTierJoinedList(c *gin.Context)
- func ZeroTierLeaveNetwork(c *gin.Context)
- func ZeroTierMemberDelete(c *gin.Context)
- func ZeroTierMemberEdit(c *gin.Context)
- func ZeroTierMemberList(c *gin.Context)
- func ZeroTierRegister(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPartition ¶
@Summary add storage @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "disk path e.g. /dev/sda" @Param serial formData string true "serial" @Param name formData string true "name" @Param format formData bool true "need format(true)" @Success 200 {string} string "ok" @Router /disk/storage [post]
func AppInfo ¶
@Summary 应用详情 @Produce application/json @Accept application/json @Tags app @Param id path int true "id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/appinfo/{id} [get]
func AppList ¶
@Summary 获取远程列表 @Produce application/json @Accept application/json @Tags app @Param index query int false "页码" @Param size query int false "每页数量" @Param category_id query int false "分类id" @Param type query string false "rank,new" @Param key query string false "search key" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/list [get]
func AppListResourceUsage ¶ added in v0.2.3
func AppListResourceUsage()
@Summary Resource Usage @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/share [post]
func AppUsageList ¶ added in v0.2.3
@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 CategoryList ¶
@Summary 获取远程分类列表 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/category [get]
func ChangAppState ¶
@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 Chang_User_Info ¶
@Summary 修改用户信息 @Produce application/json @Accept multipart/form-data @Tags user @Param username formData string false "User Name" @Param email formData string false "Email" @Param description formData string false "Description" @Param pwd formData string false "Password" @Param oldpwd formData string false "Old password" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/changuserinfo [post]
func Chang_User_Name ¶
@Summary 修改用户名 @Produce application/json @Accept multipart/form-data @Tags user @Param username formData string true "User name" @Param oldname formData string true "Old user name" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/changusername [put]
func Chang_User_Pwd ¶
@Summary 修改密码 @Produce application/json @Accept multipart/form-data @Tags user @Param pwd formData string true "Password" @Param oldpwd formData string true "Old password" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/changuserpwd [put]
func CheckVersion ¶
@Summary 系统信息 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/chackversion [get]
func ContainerInfo ¶
@Summary 获取容器详情 @Produce application/json @Accept application/json @Tags app @Param id path string true "appid" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/info/{id} [get]
func ContainerLog ¶
@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 ContainerRelyInfo ¶
@Summary 获取依赖数据 @Produce application/json @Accept application/json @Tags app @Param id path string true "rely id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/rely/{id}/info [get]
func ContainerUpdateInfo ¶
@Summary 获取可更新数据 @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 CupInfo ¶
@Summary 获取cpu信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getcpuinfo [get]
func DDNSAddConfig ¶
@Summary 添加新的ddns(按给定模型返回内容) @Produce application/json @Accept multipart/form-data @Tags ddns @Param type formData string true "类型" @Param host formData string true "host" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/set [post]
func DDNSConfigList ¶
@Summary 获取已设置的列表 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/list [get]
func DDNSDelete ¶
@Summary 删除ddns @Produce application/json @Accept application/json @Tags ddns @Param id path int true "ID" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/delete/{id} [delete]
func DDNSGetDomainList ¶
@Summary 获取可以设置的ddns列表 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/getlist [get]
func DDNSGetIP ¶
@Summary 获取ip,仅做展示使用 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/ip [get]
func DDNSPing ¶
@Summary 测试网址是否可以ping通 @Produce application/json @Accept application/json @Tags ddns @Param api_host path int true "api地址" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/ping/{api_host} [get]
func DeleteDisk ¶ added in v0.2.4
@Summary confirm delete disk @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Param id path string true "id" @Success 200 {string} string "ok" @Router /disk/remove/{id} [delete]
func DeleteShareDirDel ¶
@Summary 删除分享 @Produce application/json @Accept application/json @Tags share @Security ApiKeyAuth @Param id path string true "id" @Success 200 {string} string "ok" @Router /share/del/{id} [delete]
func DeleteShortcutsDelete ¶
@Summary 删除shortcuts @Produce application/json @Accept application/json @Tags shortcuts @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /shortcuts/del/{id} [post]
func DirPath ¶
@Summary 获取目录列表 @Produce application/json @Accept application/json @Tags file @Security ApiKeyAuth @Param path query string false "路径" @Success 200 {string} string "ok" @Router /file/dirpath [get]
func DiskInfo ¶
@Summary 获取硬盘信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getdiskinfo [get]
func FormatDisk ¶
@Summary format storage @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "e.g. /dev/sda1" @Param pwd formData string true "user password" @Param volume formData string true "mount point" @Success 200 {string} string "ok" @Router /disk/format [post]
func FormatDiskType ¶
@Summary 获取支持的格式 @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/type [get]
func GetCasaOSErrorLogs ¶
@Summary get logs @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/error/logs [get]
func GetCasaOSPort ¶ added in v0.2.3
@Summary get casaos server port @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/port [get]
func GetContainerState ¶
@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 GetDiskCheck ¶ added in v0.2.4
@Summary check mount point @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/init [get]
func GetDiskInfo ¶
@Summary disk detail @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Param path query string true "for example /dev/sda" @Success 200 {string} string "ok" @Router /disk/info [get]
func GetDiskList ¶ added in v0.2.6
@Summary disk list @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/list [get]
func GetDockerInstallConfig ¶
@Summary 获取安装所需要的数据 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/install/config [get]
func GetDownloadFile ¶
@Summary 下载文件 @Produce application/json @Accept application/json @Tags file @Security ApiKeyAuth @Param path query string true "路径" @Success 200 {string} string "ok" @Router /file/download [get]
func GetFilerContent ¶
@Summary 读取文件 @Produce application/json @Accept application/json @Tags file @Security ApiKeyAuth @Param path query string true "路径" @Success 200 {string} string "ok" @Router /file/read [get]
func GetGuideCheck ¶
@Summary 检查是否进入引导状态 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /guide/check [get]
func GetInstallSpeed ¶
@Summary 获取安装进度 @Produce application/json @Accept application/json @Tags app @Param id path string true "容器id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/speed/{id} [get]
func GetLocalFile ¶
func GetPlugInDisks ¶
@Summary get disk list @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/lists [get]
func GetPort ¶
@Summary 获取一个可用端口 @Produce application/json @Accept application/json @Tags app @Param type query string true "端口类型 udp/tcp" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/getport [get]
func GetSearchList ¶
func GetShareDirInfo ¶
@Summary 分享详情 @Produce application/json @Accept application/json @Tags share @Security ApiKeyAuth @Param id path string true "id" @Success 200 {string} string "ok" @Router /share/info/{id} [get]
func GetShareDirList ¶
@Summary 获取列表 @Produce application/json @Accept application/json @Tags share @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /share/list [get]
func GetShortcutsList ¶
@Summary 获取短链列表 @Produce application/json @Accept application/json @Tags shortcuts @Param username formData string true "User name" @Param pwd formData string true "password" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /shortcuts/list [get]
func GetSyncConfig ¶
func GetTaskList ¶
@Summary 获取task列表 @Produce application/json @Accept application/json @Tags task @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /task/list [get]
func Info ¶
@Summary system info @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/info [get]
func InstallApp ¶
@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/{id} [post]
func Login ¶
@Summary 登录 @Produce application/json @Accept multipart/form-data @Tags user @Param username formData string true "User name" @Param pwd formData string true "password" @Success 200 {string} string "ok" @Router /user/login [post]
func MemInfo ¶
@Summary 获取内存信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getmeminfo [get]
func MkdirAll ¶
@Summary 创建文件夹 @Produce application/json @Accept multipart/form-data @Tags file @Security ApiKeyAuth @Param path formData string false "路径" @Success 200 {string} string "ok" @Router /file/mkdir [post]
func MyAppList ¶
@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/mylist [get]
func NetInfo ¶
@Summary 获取网络信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getnetinfo [get]
func NotifyWS ¶
@Summary websocket 接口,连接成功后发送一个"notify"字符串 @Produce application/json @Accept application/json @Tags notify @Security ApiKeyAuth @Param token path string true "token" @Success 200 {string} string "ok" @Router /notify/ws [get]
func PortCheck ¶
@Summary 检查端口是否可用 @Produce application/json @Accept application/json @Tags app @Param port path int true "端口号" @Param type query string true "端口类型 udp/tcp" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/check/{port} [get]
func PostCreateFile ¶
@Summary 创建文件 @Produce application/json @Accept multipart/form-data @Tags file @Security ApiKeyAuth @Param path formData string false "路径" @Success 200 {string} string "ok" @Router /file/create [post]
func PostDiskUmount ¶ added in v0.2.4
@Summary remove mount point @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "e.g. /dev/sda1" @Param mount_point formData string true "e.g. /mnt/volume1" @Param pwd formData string true "user password" @Success 200 {string} string "ok" @Router /disk/umount [post]
func PostFileUpload ¶
@Summary 上传文件 @Produce application/json @Accept multipart/form-data @Tags file @Security ApiKeyAuth @Param path formData string false "路径" @Success 200 {string} string "ok" @Router /file/mkdir [post]
func PostKillCasaOS ¶ added in v0.2.3
@Summary active killing casaos @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/kill [post]
func PostMountDisk ¶ added in v0.2.3
@Summary add mount point @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "for example: /dev/sda1" @Param serial formData string true "disk id" @Success 200 {string} string "ok" @Router /disk/mount [post]
func PostSetSystemConfig ¶
@Summary 修改配置文件 @Produce application/json @Accept multipart/form-data @Tags sys @Param config formData string true "config json string" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/changhead [post]
func PostSetWidgetConfig ¶
@Summary 修改组件配置文件 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/widget/config [post]
func PostShareDirAdd ¶
@Summary 添加文件共享 @Produce application/json @Accept multipart/form-data @Tags share @Security ApiKeyAuth @Param path formData string true "要分享的文件路径" @Param name formData string true "名称" @Param comment formData string true "描述" @Param read_only formData bool false "是否只读" @Param writeable formData bool false "是否可写" @Param browseable formData bool false "是否可浏览" @Param user formData string false "用户" @Success 200 {string} string "ok" @Router /share/add [post]
func PostShortcutsAdd ¶
@Summary 添加shortcuts @Produce application/json @Accept application/json @Tags shortcuts @Param title formData string true "title" @Param url formData string true "url" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /shortcuts/add [post]
func PostTaskAdd ¶
func PutCasaOSPort ¶ added in v0.2.3
@Summary edit casaos server port @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Param port formData string true "port" @Success 200 {string} string "ok" @Router /sys/port [put]
func PutFileMove ¶ added in v0.2.4
func PutNotifyRead ¶
@Summary 标记notify已读 @Produce application/json @Accept application/json @Tags notify @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /notify/read/{id} [put]
func PutShareDirEdit ¶
@Summary 更新分享详情 @Produce application/json @Accept application/json @Tags share @Security ApiKeyAuth @Param id path string true "id" @Param path formData string true "要分享的文件路径" @Param name formData string true "名称" @Param comment formData string true "描述" @Param read_only formData bool false "是否只读" @Param writeable formData bool false "是否可写" @Param browseable formData bool false "是否可浏览" @Param user formData string false "用户" @Success 200 {string} string "ok" @Router /share/update/{id} [put]
func PutShortcutsEdit ¶
@Summary 编辑shortcuts @Produce application/json @Accept application/json @Tags shortcuts @Param title formData string true "title" @Param url formData string true "url" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /shortcuts/edit [put]
func PutTaskMarkerCompletion ¶
@Summary 标记task已完成 @Produce application/json @Accept application/json @Tags task @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /task/completion/{id} [put]
func PutTaskUpdate ¶
func RemovePartition ¶
@Summary 删除分区 @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "磁盘路径 例如/dev/sda1" @Success 200 {string} string "ok" @Router /disk/delpart [delete]
func RenamePath ¶
@Summary 重命名目录或文件 @Produce application/json @Accept application/json @Tags file @Security ApiKeyAuth @Param oldpath formData string true "旧的路径" @Param newpath formData string true "新路径" @Success 200 {string} string "ok" @Router /file/rename [put]
func Set_Name_Pwd ¶
@Summary 设置用户名和密码 @Produce application/json @Accept multipart/form-data @Tags user @Param username formData string true "User name" @Param pwd formData string true "password" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/setusernamepwd [post]
func ShareAppFile ¶
@Summary 分享该应用配置 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/share [post]
func SyncToSyncthing ¶
func SysInfo ¶
@Summary 获取信息系统信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/sysinfo [get]
func SystemUpdate ¶
@Summary 系统信息 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/update [post]
func UnInstallApp ¶
@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 Up_Load_Head ¶
@Summary 修改头像 @Produce application/json @Accept multipart/form-data @Tags user @Param file formData file true "用户头像" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/changhead [post]
func UpdateSetting ¶
@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 UserInfo ¶
@Summary 获取用户详情 @Produce application/json @Accept mapplication/json @Tags user @Success 200 {string} string "ok" @Router /user/info [get]
func ZeroTierCreateNetwork ¶
@Summary create new network @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/create [post]
func ZeroTierDeleteNetwork ¶
@Summary 删除网络 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Success 200 {string} string "ok" @Router /zerotier/network/{id}/del [delete]
func ZeroTierEdit ¶
@Summary 修改网络 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Param json formData string true "json数据" @Success 200 {string} string "ok" @Router /zerotier/edit/{id} [put]
func ZeroTierGetNetworkGetInfo ¶
@Summary 获取zerotier网络详情 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Success 200 {string} string "ok" @Router /zerotier/info/{id} [get]
func ZeroTierGetNetworkList ¶
@Summary 获取zerotier网络列表 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/list [get]
func ZeroTierGetToken ¶
@Summary 登录zerotier获取token @Produce application/json @Accept multipart/form-data @Tags zerotier @Param username formData string true "User name" @Param pwd formData string true "password" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/login [post]
func ZeroTierIsNeedLogin ¶
@Summary 是否需要登录zerotier @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "false:需要登录,true:不需要登录" @Router /zerotier/islogin [get]
func ZeroTierJoinNetwork ¶
@Summary 加入网络 @Produce application/json @Accept multipart/form-data @Tags zerotier @Param id path string true "network id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/join/{id} [post]
func ZeroTierJoinedList ¶
@Summary 获取已加入的网络 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/joined/list [get]
func ZeroTierLeaveNetwork ¶
@Summary 获取zerotier网络列表 @Produce application/json @Accept multipart/form-data @Tags zerotier @Param id path string true "network id" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/leave/{id} [post]
func ZeroTierMemberDelete ¶
@Summary 删除网络中的用户 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Param mId path string true "member_id" @Success 200 {string} string "ok" @Router /zerotier/member/{id}/del/{mId} [delete]
func ZeroTierMemberEdit ¶
@Summary 修改网络用户信息 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Param mId path string true "mId" @Param json formData string true "json数据" @Success 200 {string} string "ok" @Router /zerotier/member/{id}/edit/{mId} [put]
func ZeroTierMemberList ¶
@Summary 网络列表 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Param id path string true "network id" @Success 200 {string} string "ok" @Router /zerotier/member/{id} [get]
func ZeroTierRegister ¶
@Summary 注册zerotier @Produce application/json @Accept multipart/form-data @Tags zerotier @Param firstName formData string true "first name" @Param pwd formData string true "password" @Param email formData string true "email" @Param lastName formData string true "last name" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/register [post]
Types ¶
This section is empty.