Add listing of runners file system.

This commit is contained in:
Maximilian Paß
2022-08-17 22:40:31 +02:00
parent c7ee7c1e25
commit 152b77afe5
11 changed files with 408 additions and 13 deletions

View File

@ -100,6 +100,11 @@ type ExecutionResponse struct {
WebSocketURL string `json:"websocketUrl"`
}
// ListFileSystemResponse is the expected response when listing the file system.
type ListFileSystemResponse struct {
Files []FileHeader `json:"files"`
}
// UpdateFileSystemRequest is the expected json structure of the request body for the update file system route.
type UpdateFileSystemRequest struct {
Delete []FilePath `json:"delete"`
@ -109,6 +114,14 @@ type UpdateFileSystemRequest struct {
// FilePath specifies the path of a file and is part of the UpdateFileSystemRequest.
type FilePath string
// FileHeader specifies the information provided for listing a File.
type FileHeader struct {
Name FilePath `json:"name"`
ObjectType string `json:"objectType"`
Size int `json:"size"`
ModificationTime int `json:"modificationTime"`
}
// File is a DTO for transmitting file contents. It is part of the UpdateFileSystemRequest.
type File struct {
Path FilePath `json:"path"`