datarhei-dragonfork-core/http/api/fs.go

16 lines
486 B
Go
Raw Normal View History

2022-05-13 13:26:45 -04:00
package api
// FileInfo represents informatiion about a file on a filesystem
type FileInfo struct {
Name string `json:"name" jsonschema:"minLength=1"`
Size int64 `json:"size_bytes" jsonschema:"minimum=0" format:"int64"`
LastMod int64 `json:"last_modified" jsonschema:"minimum=0" format:"int64"`
2022-05-13 13:26:45 -04:00
}
2023-01-31 08:45:58 -05:00
// FilesystemInfo represents information about a filesystem
type FilesystemInfo struct {
Name string `json:"name"`
Type string `json:"type"`
Mount string `json:"mount"`
}