Documentation
¶
Index ¶
- func ExitCode(err error) (int, bool)
- func TestConnection(ctx context.Context, rcUrl string, rcUser string, rcPass string, ...) error
- func WasHardTerminated(err error) bool
- type Manager
- 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
- type MountInfo
- type RCRequest
- type RCResponse
- type RcloneRcClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConnection ¶
func WasHardTerminated ¶
WasHardTerminated reports true iff the process was ended by SIGKILL or SIGTERM.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the rclone RC server and provides mount operations
func NewManager ¶
NewManager creates a new rclone RC manager
func (*Manager) GetAllMounts ¶
GetAllMounts returns information about all mounts
func (*Manager) GetMountInfo ¶
GetMountInfo returns information about a specific mount
func (*Manager) MonitorMounts ¶
MonitorMounts continuously monitors mount health and attempts recovery
func (*Manager) RecoverMount ¶
RecoverMount attempts to recover a failed mount
func (*Manager) RefreshDir ¶
RefreshDir refreshes directories in the VFS cache
func (*Manager) UnmountAll ¶
UnmountAll unmounts all mounts
type Mount ¶
type Mount struct {
Provider string
LocalPath string
WebDAVURL string
// contains filtered or unexported fields
}
Mount represents a mount using the rclone RC client
func (*Mount) GetMountInfo ¶
GetMountInfo returns mount information
type RCResponse ¶
type RcloneRcClient ¶
type RcloneRcClient interface {
RefreshDir(ctx context.Context, provider string, dirs []string) error
}
func NewRcloneRcClient ¶
func NewRcloneRcClient( config *config.Manager, httpClient *http.Client, ) RcloneRcClient
Click to show internal directories.
Click to hide internal directories.