sync

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullResult

type PullResult struct {
	DeviceSerial string
	FilesPulled  int
	FilesSkipped int
	Errors       []string
}

PullResult summarizes a pull operation.

type Puller

type Puller struct {
	ADB      *adb.Client
	Manifest *manifest.DB
	Config   *config.Config
}

Puller handles pulling media from Quest devices.

func (*Puller) PullAll

func (p *Puller) PullAll() ([]PullResult, error)

PullAll pulls media from all connected devices.

func (*Puller) PullDevice

func (p *Puller) PullDevice(serial string) (PullResult, error)

PullDevice pulls media from a specific device.

type PushResult

type PushResult struct {
	Destination  string
	FilesPushed  int
	FilesSkipped int
	Errors       []string
}

PushResult summarizes a push operation.

type Pusher

type Pusher struct {
	Rclone   *rclone.Client
	Manifest *manifest.DB
	Config   *config.Config
}

Pusher handles uploading local media to rclone destinations.

func (*Pusher) PushAll

func (p *Pusher) PushAll() ([]PushResult, error)

PushAll uploads unpushed files to all configured destinations.

func (*Pusher) PushFile

func (p *Pusher) PushFile(fileID int64, localPath, baseDir string) ([]PushResult, error)

PushFile uploads a single file to all destinations and records it. If baseDir is empty, the config's sync dir is used to compute relative paths.

func (*Pusher) PushToDest

func (p *Pusher) PushToDest(dest config.Destination) (PushResult, error)

PushToDest uploads unpushed files to a specific destination.

type StreamResult

type StreamResult struct {
	DeviceSerial  string
	FilesStreamed int
	FilesSkipped  int
	Errors        []string
}

StreamResult summarizes a stream operation.

type Streamer

type Streamer struct {
	ADB       *adb.Client
	Rclone    *rclone.Client
	Manifest  *manifest.DB
	Config    *config.Config
	SkipLocal bool
}

Streamer handles one-file-at-a-time streaming mode.

func (*Streamer) StreamAll

func (s *Streamer) StreamAll() ([]StreamResult, error)

StreamAll streams files from all connected devices.

func (*Streamer) StreamDevice

func (s *Streamer) StreamDevice(serial string) (StreamResult, error)

StreamDevice streams files from a specific device, one at a time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL