package sftpfs
import "github.com/spf13/afero/sftpfs"
Index ¶
- func New(client *sftp.Client) afero.Fs
- type File
- func FileCreate(s *sftp.Client, name string) (*File, error)
- func FileOpen(s *sftp.Client, name string) (*File, error)
- 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)
Functions ¶
func New ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func FileCreate ¶
func FileOpen ¶
func (*File) Close ¶
func (*File) Name ¶
func (*File) Read ¶
func (*File) ReadAt ¶
func (*File) Readdir ¶
func (*File) Readdirnames ¶
func (*File) Seek ¶
func (*File) Stat ¶
func (*File) Sync ¶
func (*File) Truncate ¶
func (*File) Write ¶
func (*File) WriteAt ¶
TODO
func (*File) WriteString ¶
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).
func (Fs) Chmod ¶
func (Fs) Chown ¶
func (Fs) Chtimes ¶
func (Fs) Create ¶
func (Fs) Lstat ¶
func (Fs) Mkdir ¶
func (Fs) MkdirAll ¶
func (Fs) Name ¶
func (Fs) Open ¶
func (Fs) OpenFile ¶
OpenFile calls the OpenFile method on the SSHFS connection. The mode argument is ignored because it's ignored by the github.com/pkg/sftp implementation.
func (Fs) Remove ¶
func (Fs) RemoveAll ¶
func (Fs) Rename ¶
func (Fs) Stat ¶
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.