sftpfs

package
v0.0.0-...-ebdecc8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCmd

func FromCmd(cmd *cobra.Command, args []string) (billy.Filesystem, error)

func New

func New(client *sftp.Client, base string) billy.Filesystem

Types

type Fs

type Fs struct {
	*sftp.Client
	// contains filtered or unexported fields
}

func (*Fs) Create

func (s *Fs) Create(filename string) (billy.File, error)

func (*Fs) MkdirAll

func (s *Fs) MkdirAll(filename string, perm os.FileMode) error

func (*Fs) Open

func (s *Fs) Open(filename string) (billy.File, error)

func (*Fs) OpenFile

func (s *Fs) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
func (s *Fs) Readlink(link string) (string, error)

Jump to

Keyboard shortcuts

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