v1

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 24 Imported by: ? modules, 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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDiskUSB

func DeleteDiskUSB(c *gin.Context)

func DeleteDisksUmount

func DeleteDisksUmount(c *gin.Context)

func DeleteStorage

func DeleteStorage(c *gin.Context)

func GetDiskList

func GetDiskList(c *gin.Context)

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

func GetDiskSize added in v0.4.5

func GetDiskSize(c *gin.Context)

func GetDisksUSBList

func GetDisksUSBList(c *gin.Context)

func GetRecoverStorage added in v0.4.3

func GetRecoverStorage(c *gin.Context)

func GetStorageList

func GetStorageList(c *gin.Context)

func GetSystemUSBAutoMount

func GetSystemUSBAutoMount(c *gin.Context)

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

func ListDriverInfo(c *gin.Context)

func ListStorages added in v0.4.3

func ListStorages(c *gin.Context)

func PostAddStorage

func PostAddStorage(c *gin.Context)

func PutFormatStorage

func PutFormatStorage(c *gin.Context)

@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

func PutSystemUSBAutoMount(c *gin.Context)

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

func UmountStorage added in v0.4.3

func UmountStorage(c *gin.Context)

Types

type StorageMessage

type StorageMessage struct {
	Type   string `json:"type"`   // sata,usb
	Action string `json:"action"` // remove add
	Path   string `json:"path"`
	Volume string `json:"volume"`
	Size   uint64 `json:"size"`
}

Jump to

Keyboard shortcuts

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