Versions in this module Expand all Collapse all v0 v0.4.0 Nov 3, 2026 Changes in this version + func ExitCode(err error) (int, bool) + func TestConnection(ctx context.Context, rcUrl string, rcUser string, rcPass string, ...) error + func ToVFSPath(dir string) string + func ToVFSPaths(dirs []string) []string + func WasHardTerminated(err error) bool + type Manager struct + func NewManager(cfm *config.Manager) *Manager + func (m *Manager) ForgetDir(ctx context.Context, provider string, dirs []string) error + func (m *Manager) GetAllMounts() map[string]*MountInfo + func (m *Manager) GetLogger() *slog.Logger + func (m *Manager) GetMountInfo(provider string) (*MountInfo, bool) + func (m *Manager) IsMounted(provider string) bool + func (m *Manager) IsReady() bool + func (m *Manager) MonitorMounts(ctx context.Context) + func (m *Manager) Mount(ctx context.Context, provider, mountPath, webdavURL string) error + func (m *Manager) RecoverMount(ctx context.Context, provider string) error + func (m *Manager) RefreshDir(ctx context.Context, provider string, dirs []string) error + func (m *Manager) Start(ctx context.Context) error + func (m *Manager) Stop() error + func (m *Manager) Unmount(ctx context.Context, provider string) error + func (m *Manager) UnmountAll(ctx context.Context) error + func (m *Manager) WaitForReady(timeout time.Duration) error + type Mount struct + LocalPath string + Provider string + WebDAVURL string + func NewMount(provider, mountPath, webdavURL string, rcManager *Manager) *Mount + func (m *Mount) GetMountInfo() (*MountInfo, bool) + func (m *Mount) IsMounted() bool + func (m *Mount) Mount(ctx context.Context) error + func (m *Mount) Unmount(ctx context.Context) error + type MountInfo struct + ConfigName string + Error string + LocalPath string + Mounted bool + MountedAt string + Provider string + WebDAVURL string + type RCRequest struct + Args map[string]any + Command string + type RCResponse struct + Error string + Result any + type RcloneRcClient interface + ForgetDir func(ctx context.Context, provider string, dirs []string) error + RefreshDir func(ctx context.Context, provider string, dirs []string) error + func NewRcloneRcClient(config *config.Manager, httpClient *http.Client) RcloneRcClient