2025-09-05 17:15:58 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
|
|
type DiskPartitionRequest struct {
|
|
|
|
|
Device string `json:"device" validate:"required"`
|
|
|
|
|
Filesystem string `json:"filesystem" validate:"required,oneof=ext4 xfs"`
|
|
|
|
|
Label string `json:"label"`
|
|
|
|
|
AutoMount bool `json:"autoMount"`
|
2025-09-10 13:50:51 +08:00
|
|
|
MountPoint string `json:"mountPoint" validate:"required"`
|
2025-09-05 17:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DiskMountRequest struct {
|
|
|
|
|
Device string `json:"device" validate:"required"`
|
|
|
|
|
MountPoint string `json:"mountPoint" validate:"required"`
|
|
|
|
|
Filesystem string `json:"filesystem" validate:"required,oneof=ext4 xfs"`
|
2025-09-10 13:50:51 +08:00
|
|
|
AutoMount bool `json:"autoMount"`
|
2025-12-26 16:33:03 +08:00
|
|
|
NoFail bool `json:"noFail"`
|
2025-09-05 17:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DiskUnmountRequest struct {
|
|
|
|
|
MountPoint string `json:"mountPoint" validate:"required"`
|
|
|
|
|
}
|