Documentation
¶
Index ¶
- Variables
- type API
- func (api *API) HandleEditFiles(rw http.ResponseWriter, r *http.Request)
- func (api *API) HandleLS(rw http.ResponseWriter, r *http.Request)
- func (api *API) HandleReadFile(rw http.ResponseWriter, r *http.Request)
- func (api *API) HandleWriteFile(rw http.ResponseWriter, r *http.Request)
- func (api *API) Routes() http.Handler
- type HTTPResponseCode
Constants ¶
This section is empty.
Variables ¶
View Source
var WindowsDriveRegex = regexp.MustCompile(`^[a-zA-Z]:\\$`)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API exposes file-related operations performed through the agent.
func (*API) HandleEditFiles ¶
func (api *API) HandleEditFiles(rw http.ResponseWriter, r *http.Request)
func (*API) HandleReadFile ¶
func (api *API) HandleReadFile(rw http.ResponseWriter, r *http.Request)
func (*API) HandleWriteFile ¶
func (api *API) HandleWriteFile(rw http.ResponseWriter, r *http.Request)
type HTTPResponseCode ¶
type HTTPResponseCode = int
Click to show internal directories.
Click to hide internal directories.