remote

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Target      string
	Port        int
	BatchMode   bool
	Timeout     time.Duration
	ScanTimeout time.Duration
}

Config configures a remote SFTP scan.

type SFTPScanner

type SFTPScanner struct {
	// contains filtered or unexported fields
}

SFTPScanner scans a remote filesystem over the SFTP subsystem.

func NewSFTPScanner

func NewSFTPScanner(cfg Config) *SFTPScanner

NewSFTPScanner creates a new remote scanner.

func (*SFTPScanner) Scan

func (s *SFTPScanner) Scan(ctx context.Context, remotePath string, opts scanner.ScanOptions, progress chan<- scanner.Progress) (*model.DirNode, error)

Scan scans a remote path over SFTP and returns the root directory tree.

Jump to

Keyboard shortcuts

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