ssh

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteSync

type RemoteSync struct {
	Host                    string
	User                    string
	Port                    int
	Full                    bool
	DB                      *db.DB
	SSHOpts                 []string // extra args passed to ssh (e.g. -i keyfile)
	BlockedResultCategories []string
}

RemoteSync orchestrates pulling session data from a remote host over SSH, parsing it, and writing it to the local DB.

func (*RemoteSync) Run

func (rs *RemoteSync) Run(
	ctx context.Context,
) (SyncStats, error)

Run executes the full remote sync flow: resolve dirs, download via tar, then delegate to sync.Engine for discovery, parsing, and writing.

type SyncStats

type SyncStats struct {
	SessionsSynced int
	SessionsTotal  int
	Skipped        int
	Failed         int
}

SyncStats summarizes the outcome of a remote sync run.

Jump to

Keyboard shortcuts

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