Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + type Option func(*sftpOptions) + func WithBasePath(basePath string) Option + func WithClient(client *sftp.Client) Option + func WithExcludePatterns(patterns []string) Option + func WithHostKeyCallback(cb ssh.HostKeyCallback) Option + func WithKey(keyPath string) Option + func WithKnownHosts(path string) Option + func WithPassword(password string) Option + func WithPort(port string) Option + func WithUser(user string) Option + type Source struct + func New(host string, opts ...Option) (*Source, error) + func (s *Source) Close() error + func (s *Source) GetFileStream(fileID string) (io.ReadCloser, error) + func (s *Source) Info() source.SourceInfo + func (s *Source) Size(ctx context.Context) (*source.SourceSize, error) + func (s *Source) Walk(ctx context.Context, callback func(source.FileMeta) error) error