Documentation ¶
Overview ¶
@Author: LinkLeong link@icewhale.com
*@Date: 2022-07-11 16:02:29 *@LastEditors: LinkLeong *@LastEditTime: 2022-08-17 19:14:50 *@FilePath: /CasaOS/route/v1/storage.go *@Description: *@Website: https://www.casaos.io *Copyright (c) 2022 by icewhale, All Rights Reserved.
Index ¶
- func DeleteDiskUSB(c *gin.Context)
- func DeleteDisksUmount(c *gin.Context)
- func DeleteStorage(c *gin.Context)
- func GetDiskList(c *gin.Context)
- func GetDisksUSBList(c *gin.Context)
- func GetStorageList(c *gin.Context)
- func GetSystemUSBAutoMount(c *gin.Context)
- func PostAddStorage(c *gin.Context)
- func PutFormatStorage(c *gin.Context)
- func PutSystemUSBAutoMount(c *gin.Context)
- type StorageMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDiskUSB ¶
func DeleteDisksUmount ¶
func DeleteStorage ¶
func GetDiskList ¶
@Summary disk list @Produce application/json @Accept application/json @Tags disk @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /disk/list [get]
func GetDisksUSBList ¶
func GetStorageList ¶
func GetSystemUSBAutoMount ¶
@Summary Turn off usb auto-mount @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/usb [get]
func PostAddStorage ¶
func PutFormatStorage ¶
@Param pwd formData string true "user password" @Param volume formData string true "mount point" @Success 200 {string} string "ok" @Router /disk/format [post]
func PutSystemUSBAutoMount ¶
@Summary Turn off usb auto-mount @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/usb/off [put]