readers

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalDirReader

type LocalDirReader struct{}

func NewLocalDirReader

func NewLocalDirReader() *LocalDirReader

func (*LocalDirReader) Open

func (l *LocalDirReader) Open(name string) (fs.File, error)

func (*LocalDirReader) ReadDir

func (r *LocalDirReader) ReadDir(dirName string) ([]fs.DirEntry, error)

func (*LocalDirReader) ReadFile

func (r *LocalDirReader) ReadFile(filePath string) (string, error)
func (r *LocalDirReader) ReadLink(name string) (string, error)

type SshDirReader

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

func NewSshDirReader

func NewSshDirReader(user, pass string, privateKey []byte, privateKeyPass []byte, privKeyPath string,
	host string, port int,
) (*SshDirReader, error)

func (*SshDirReader) Open

func (s *SshDirReader) Open(name string) (fs.File, error)

func (*SshDirReader) ReadDir

func (r *SshDirReader) ReadDir(dirName string) ([]fs.DirEntry, error)

func (*SshDirReader) ReadFile

func (r *SshDirReader) ReadFile(filePath string) (string, error)
func (r *SshDirReader) ReadLink(name string) (string, error)

Jump to

Keyboard shortcuts

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