Infer content type in alloc fs stat endpoint

This commit is contained in:
Preetha Appan
2019-06-28 20:31:28 -05:00
parent 520cd901d7
commit f7f41c42e6
8 changed files with 68 additions and 19 deletions

View File

@@ -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.