v1

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPartition

func AddPartition(c *gin.Context)

@Summary serial number @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "磁盘路径 例如/dev/sda" @Param serial formData string true "serial" @Success 200 {string} string "ok" @Router /disk/addpart [post]

func AppInfo

func AppInfo(c *gin.Context)

@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

func AppList(c *gin.Context)

@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

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 CategoryList

func CategoryList(c *gin.Context)

@Summary 获取远程分类列表 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/category [get]

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 Chang_User_Info

func Chang_User_Info(c *gin.Context)

@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

func Chang_User_Name(c *gin.Context)

@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

func Chang_User_Pwd(c *gin.Context)

@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

func CheckVersion(c *gin.Context)

@Summary 系统信息 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/chackversion [get]

func ContainerInfo

func ContainerInfo(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/info/{id} [get]

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 ContainerRelyInfo

func ContainerRelyInfo(c *gin.Context)

@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

func ContainerUpdateInfo(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/update/{id}/info [get]

func Copy added in v0.2.4

func Copy(stop chan int, from, to string) error

func CupInfo

func CupInfo(c *gin.Context)

@Summary 获取cpu信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getcpuinfo [get]

func DDNSAddConfig

func DDNSAddConfig(c *gin.Context)

@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

func DDNSConfigList(c *gin.Context)

@Summary 获取已设置的列表 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/list [get]

func DDNSDelete

func DDNSDelete(c *gin.Context)

@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

func DDNSGetDomainList(c *gin.Context)

@Summary 获取可以设置的ddns列表 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/getlist [get]

func DDNSGetIP

func DDNSGetIP(c *gin.Context)

@Summary 获取ip,仅做展示使用 @Produce application/json @Accept application/json @Tags ddns @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /ddns/ip [get]

func DDNSPing

func DDNSPing(c *gin.Context)

@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

func DeleteDisk(c *gin.Context)

@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

func DeleteShareDirDel(c *gin.Context)

@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

func DeleteShortcutsDelete(c *gin.Context)

@Summary 删除shortcuts @Produce application/json @Accept application/json @Tags shortcuts @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /shortcuts/del/{id} [post]

func DirPath

func DirPath(c *gin.Context)

@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

func DiskInfo(c *gin.Context)

@Summary 获取硬盘信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getdiskinfo [get]

func DockerTerminal

func DockerTerminal(c *gin.Context)

打开docker的terminal

func FormatDisk

func FormatDisk(c *gin.Context)

@Summary format disk @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "for example /dev/sda1" @Success 200 {string} string "ok" @Router /disk/format [post]

func FormatDiskType

func FormatDiskType(c *gin.Context)

@Summary 获取支持的格式 @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/type [get]

func GetCasaOSErrorLogs

func GetCasaOSErrorLogs(c *gin.Context)

@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

func GetCasaOSPort(c *gin.Context)

@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

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

func GetDiskCheck(c *gin.Context)

@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

func GetDiskInfo(c *gin.Context)

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

func GetDockerInstallConfig(c *gin.Context)

@Summary 获取安装所需要的数据 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/install/config [get]

func GetDownloadFile

func GetDownloadFile(c *gin.Context)

@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

func GetFilerContent(c *gin.Context)

@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

func GetGuideCheck(c *gin.Context)

@Summary 检查是否进入引导状态 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /guide/check [get]

func GetInstallSpeed

func GetInstallSpeed(c *gin.Context)

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

func GetPlugInDisk

func GetPlugInDisk(c *gin.Context)

@Summary 获取磁盘列表 @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/list [get]

func GetPlugInDisks

func GetPlugInDisks(c *gin.Context)

@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

func GetPort(c *gin.Context)

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

func GetShareDirInfo

func GetShareDirInfo(c *gin.Context)

@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

func GetShareDirList(c *gin.Context)

@Summary 获取列表 @Produce application/json @Accept application/json @Tags share @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /share/list [get]

func GetShortcutsList

func GetShortcutsList(c *gin.Context)

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

func GetSystemConfig

func GetSystemConfig(c *gin.Context)

系统配置

func GetSystemConfigDebug

func GetSystemConfigDebug(c *gin.Context)

系统配置

func GetTaskList

func GetTaskList(c *gin.Context)

@Summary 获取task列表 @Produce application/json @Accept application/json @Tags task @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /task/list [get]

func GetWidgetConfig

func GetWidgetConfig(c *gin.Context)

widget配置

func Info

func Info(c *gin.Context)

@Summary system info @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/info [get]

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/{id} [post]

func Login

func Login(c *gin.Context)

@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

func MemInfo(c *gin.Context)

@Summary 获取内存信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getmeminfo [get]

func MkdirAll

func MkdirAll(c *gin.Context)

@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

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/mylist [get]

func NetInfo

func NetInfo(c *gin.Context)

@Summary 获取网络信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/getnetinfo [get]

func NotifyWS

func NotifyWS(c *gin.Context)

@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

func PortCheck(c *gin.Context)

@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

func PostCreateFile(c *gin.Context)

@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

func PostDiskUmount(c *gin.Context)

@Summary remove mount point @Produce application/json @Accept multipart/form-data @Tags disk @Security ApiKeyAuth @Param path formData string true "for example: /dev/sda1" @Param mount_point formData string true "for example: /mnt/volume1" @Success 200 {string} string "ok" @Router /disk/umount [post]

func PostFileUpload

func PostFileUpload(c *gin.Context)

@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

func PostKillCasaOS(c *gin.Context)

@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

func PostMountDisk(c *gin.Context)

@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

func PostSetSystemConfig(c *gin.Context)

@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

func PostSetWidgetConfig(c *gin.Context)

@Summary 修改组件配置文件 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/widget/config [post]

func PostShareDirAdd

func PostShareDirAdd(c *gin.Context)

@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

func PostShortcutsAdd(c *gin.Context)

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

func PutCasaOSPort added in v0.2.3

func PutCasaOSPort(c *gin.Context)

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

func PutNotifyRead

func PutNotifyRead(c *gin.Context)

@Summary 标记notify已读 @Produce application/json @Accept application/json @Tags notify @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /notify/read/{id} [put]

func PutShareDirEdit

func PutShareDirEdit(c *gin.Context)

@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

func PutShortcutsEdit(c *gin.Context)

@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

func PutTaskMarkerCompletion(c *gin.Context)

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

func RemovePartition

func RemovePartition(c *gin.Context)

@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

func RenamePath(c *gin.Context)

@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

func Set_Name_Pwd(c *gin.Context)

@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

func ShareAppFile(c *gin.Context)

@Summary 分享该应用配置 @Produce application/json @Accept application/json @Tags app @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /app/share [post]

func SpeedPush

func SpeedPush(c *gin.Context)

安装进度推送

func SyncToSyncthing

func SyncToSyncthing(c *gin.Context)

func Sys

func Sys(c *gin.Context)

func SysInfo

func SysInfo(c *gin.Context)

@Summary 获取信息系统信息 @Produce application/json @Accept application/json @Tags zima @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zima/sysinfo [get]

func SystemUpdate

func SystemUpdate(c *gin.Context)

@Summary 系统信息 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/update [post]

func UnInstallApp

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 Up_Load_Head

func Up_Load_Head(c *gin.Context)

@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

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]

func UserInfo

func UserInfo(c *gin.Context)

@Summary 获取用户详情 @Produce application/json @Accept mapplication/json @Tags user @Success 200 {string} string "ok" @Router /user/info [get]

func WsSsh

func WsSsh(c *gin.Context)

打开本机的ssh接口

func ZeroTierCreateNetwork

func ZeroTierCreateNetwork(c *gin.Context)

@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

func ZeroTierDeleteNetwork(c *gin.Context)

@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

func ZeroTierEdit(c *gin.Context)

@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

func ZeroTierGetNetworkGetInfo(c *gin.Context)

@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

func ZeroTierGetNetworkList(c *gin.Context)

@Summary 获取zerotier网络列表 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/list [get]

func ZeroTierGetToken

func ZeroTierGetToken(c *gin.Context)

@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

func ZeroTierIsNeedLogin(c *gin.Context)

@Summary 是否需要登录zerotier @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "false:需要登录,true:不需要登录" @Router /zerotier/islogin [get]

func ZeroTierJoinNetwork

func ZeroTierJoinNetwork(c *gin.Context)

@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

func ZeroTierJoinedList(c *gin.Context)

@Summary 获取已加入的网络 @Produce application/json @Accept application/json @Tags zerotier @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /zerotier/joined/list [get]

func ZeroTierLeaveNetwork

func ZeroTierLeaveNetwork(c *gin.Context)

@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

func ZeroTierMemberDelete(c *gin.Context)

@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

func ZeroTierMemberEdit(c *gin.Context)

@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

func ZeroTierMemberList(c *gin.Context)

@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

func ZeroTierRegister(c *gin.Context)

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

Jump to

Keyboard shortcuts

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