v1

package
v0.4.17-alpha1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

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(ctx echo.Context) error

func DeleteDisksUmount

func DeleteDisksUmount(ctx echo.Context) error

func DeleteStorage

func DeleteStorage(ctx echo.Context) error

func GetDiskList

func GetDiskList(ctx echo.Context) error

@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(ctx echo.Context) error

func GetDisksUSBList

func GetDisksUSBList(ctx echo.Context) error

func GetRecoverStorage added in v0.4.3

func GetRecoverStorage(ctx echo.Context) error

func GetStorageList

func GetStorageList(ctx echo.Context) error

func GetSystemUSBAutoMount

func GetSystemUSBAutoMount(ctx echo.Context) error

@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(ctx echo.Context) error

func ListStorages added in v0.4.3

func ListStorages(ctx echo.Context) error

func PostAddStorage

func PostAddStorage(ctx echo.Context) error

func PutFormatStorage

func PutFormatStorage(ctx echo.Context) error

@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(ctx echo.Context) error

@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(ctx echo.Context) error

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