mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
29 lines
656 B
Go
29 lines
656 B
Go
package api
|
|
|
|
type CreateVolumeBody struct {
|
|
Name string `json:"name" binding:"required"`
|
|
}
|
|
|
|
type CreateVolumeResponse struct {
|
|
Name string `json:"name"`
|
|
Mountpoint string `json:"mountpoint"`
|
|
Err string `json:"err,omitempty"`
|
|
}
|
|
|
|
type GetVolumeResponse struct {
|
|
Name string `json:"name"`
|
|
Mountpoint string `json:"mountpoint"`
|
|
Err string `json:"err,omitempty"`
|
|
}
|
|
|
|
type VolumeInfo struct {
|
|
Name string `json:"name"`
|
|
Mountpoint string `json:"mountpoint"`
|
|
Err string `json:"err,omitempty"`
|
|
}
|
|
|
|
type ListVolumesResponse struct {
|
|
Volumes []VolumeInfo `json:"volumes"`
|
|
Err string `json:"err,omitempty"`
|
|
}
|