Documentation
¶
Index ¶
- func BackendListHandler(mgr *manager.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ObjectHandler(mgr *manager.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ObjectListHandler(mgr *manager.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func RegisterHandlers(mgr *manager.Manager, router Router) error
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendListHandler ¶
Path: /{$} GET returns the list of registered backends.
func ObjectHandler ¶
Path: /{name}/{path...} GET downloads a file, HEAD returns metadata, PUT creates/replaces, POST uploads via multipart/form-data (field name: "file", repeatable for multiple files), DELETE removes.
func ObjectListHandler ¶
Path: /{name} GET lists objects at the backend root. POST uploads via multipart/form-data (field name: "file", repeatable for multiple files) to the backend root. DELETE removes objects at the backend root (use ?recursive to widen scope).
Types ¶
Click to show internal directories.
Click to hide internal directories.