mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Infer content type in alloc fs stat endpoint
This commit is contained in:
@@ -36,11 +36,12 @@ type ClientStatsResponse struct {
|
||||
|
||||
// AllocFileInfo holds information about a file inside the AllocDir
|
||||
type AllocFileInfo struct {
|
||||
Name string
|
||||
IsDir bool
|
||||
Size int64
|
||||
FileMode string
|
||||
ModTime time.Time
|
||||
Name string
|
||||
IsDir bool
|
||||
Size int64
|
||||
FileMode string
|
||||
ModTime time.Time
|
||||
ContentType string `json:"contenttype,omitempty"`
|
||||
}
|
||||
|
||||
// FsListRequest is used to list an allocation's directory.
|
||||
|
||||
Reference in New Issue
Block a user