Documentation ¶
Index ¶
- func NewTestSFTPClient() (*sftp.Client, func(), error)
- type FakeFileInfo
- type FakeSFTPClient
- func (c *FakeSFTPClient) Chmod(path string, mode os.FileMode) error
- func (c *FakeSFTPClient) Chown(path string, uid, gid int) error
- func (c *FakeSFTPClient) Chtimes(path string, atime time.Time, mtime time.Time) error
- func (c *FakeSFTPClient) Close() error
- func (c *FakeSFTPClient) Create(path string) (*sftp.File, error)
- func (c *FakeSFTPClient) Link(oldname, newname string) error
- func (c *FakeSFTPClient) Lstat(path string) (os.FileInfo, error)
- func (c *FakeSFTPClient) Mkdir(path string) error
- func (c *FakeSFTPClient) Open(path string) (*sftp.File, error)
- func (c *FakeSFTPClient) PosixRename(oldname, newname string) error
- func (c *FakeSFTPClient) ReadDir(path string) ([]os.FileInfo, error)
- func (c *FakeSFTPClient) ReadLink(path string) (string, error)
- func (c *FakeSFTPClient) Remove(path string) error
- func (c *FakeSFTPClient) RemoveDirectory(path string) error
- func (c *FakeSFTPClient) StatVFS(path string) (*sftp.StatVFS, error)
- func (c *FakeSFTPClient) Symlink(oldname, newname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestSFTPClient ¶
NewTestSFTPClient creates a new client that is connected to a server that operates on the host file system. Call the returned function to clean up after use.
Types ¶
type FakeFileInfo ¶
func (*FakeFileInfo) IsDir ¶
func (fi *FakeFileInfo) IsDir() bool
func (*FakeFileInfo) Name ¶
func (fi *FakeFileInfo) Name() string
type FakeSFTPClient ¶
func NewFakeSFTPClient ¶
func NewFakeSFTPClient(root string) *FakeSFTPClient
func (*FakeSFTPClient) Close ¶
func (c *FakeSFTPClient) Close() error
func (*FakeSFTPClient) Link ¶
func (c *FakeSFTPClient) Link(oldname, newname string) error
func (*FakeSFTPClient) Mkdir ¶
func (c *FakeSFTPClient) Mkdir(path string) error
func (*FakeSFTPClient) PosixRename ¶
func (c *FakeSFTPClient) PosixRename(oldname, newname string) error
func (*FakeSFTPClient) ReadDir ¶
func (c *FakeSFTPClient) ReadDir(path string) ([]os.FileInfo, error)
func (*FakeSFTPClient) Remove ¶
func (c *FakeSFTPClient) Remove(path string) error
func (*FakeSFTPClient) RemoveDirectory ¶
func (c *FakeSFTPClient) RemoveDirectory(path string) error
func (*FakeSFTPClient) StatVFS ¶
func (c *FakeSFTPClient) StatVFS(path string) (*sftp.StatVFS, error)
func (*FakeSFTPClient) Symlink ¶
func (c *FakeSFTPClient) Symlink(oldname, newname string) error
Click to show internal directories.
Click to hide internal directories.