2025-10-24 04:55:10 +01:00
|
|
|
package webdav
|
|
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
2025-10-25 09:24:50 +01:00
|
|
|
// Medium implements the io.Medium interface for the WebDAV protocol.
|
2025-10-24 04:55:10 +01:00
|
|
|
type Medium struct {
|
|
|
|
|
client *http.Client
|
|
|
|
|
baseURL string // e.g., https://dav.example.com/remote.php/dav/files/username/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ConnectionConfig holds the necessary details to connect to a WebDAV server.
|
|
|
|
|
type ConnectionConfig struct {
|
|
|
|
|
URL string // The full base URL of the WebDAV share.
|
|
|
|
|
User string
|
|
|
|
|
Password string
|
|
|
|
|
}
|