Documentation ¶
Index ¶
- func New(client *sftp.Client) afero.Fs
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) Readdir(count int) (res []os.FileInfo, err error)
- func (f *File) Readdirnames(n int) (names []string, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(b []byte) (n int, err error)
- func (f *File) WriteAt(b []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type Fs
- func (s Fs) Chmod(name string, mode os.FileMode) error
- func (s Fs) Chown(name string, uid, gid int) error
- func (s Fs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (s Fs) Create(name string) (afero.File, error)
- func (s Fs) Lstat(p string) (os.FileInfo, error)
- func (s Fs) Mkdir(name string, perm os.FileMode) error
- func (s Fs) MkdirAll(path string, perm os.FileMode) error
- func (s Fs) Name() string
- func (s Fs) Open(name string) (afero.File, error)
- func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (s Fs) Remove(name string) error
- func (s Fs) RemoveAll(path string) error
- func (s Fs) Rename(oldname, newname string) error
- func (s Fs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
Fs is a afero.Fs implementation that uses functions provided by the sftp package.
For details in any method, check the documentation of the sftp package (github.com/pkg/sftp).
Click to show internal directories.
Click to hide internal directories.