Documentation
¶
Overview ¶
Package filesystem lets the UI browse the server's directories — the browser sandbox cannot reveal absolute paths, but this process runs on the same machine the workflows do.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct{}
func (*API) Browse ¶
func (api *API) Browse(ctx context.Context, requester interface{}, request *BrowseRequest) (*BrowseResponse, error)
type BrowseRequest ¶
type BrowseRequest struct {
// Path to list; empty means the user's home directory.
Path string `json:"path,omitempty"`
}
func (*BrowseRequest) Validate ¶
func (r *BrowseRequest) Validate() error
type BrowseResponse ¶
type BrowseResponse struct {
Path string `json:"path"`
Parent string `json:"parent,omitempty"`
Directories []DirectoryEntry `json:"directories"`
}
type DirectoryEntry ¶
Click to show internal directories.
Click to hide internal directories.