mocks

package
v5.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Chtimes

func (_m *Client) Chtimes(path string, atime time.Time, mtime time.Time) error

Chtimes provides a mock function with given fields: path, atime, mtime

func (*Client) Close added in v5.8.0

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) Create

func (_m *Client) Create(path string) (*pkgsftp.File, error)

Create provides a mock function with given fields: path

func (*Client) MkdirAll

func (_m *Client) MkdirAll(path string) error

MkdirAll provides a mock function with given fields: path

func (*Client) OpenFile

func (_m *Client) OpenFile(path string, f int) (*pkgsftp.File, error)

OpenFile provides a mock function with given fields: path, f

func (*Client) ReadDir

func (_m *Client) ReadDir(p string) ([]os.FileInfo, error)

ReadDir provides a mock function with given fields: p

func (*Client) Remove

func (_m *Client) Remove(path string) error

Remove provides a mock function with given fields: path

func (*Client) Rename

func (_m *Client) Rename(oldname string, newname string) error

Rename provides a mock function with given fields: oldname, newname

func (*Client) Stat

func (_m *Client) Stat(p string) (os.FileInfo, error)

Stat provides a mock function with given fields: p

type FileInfo

type FileInfo struct {
	mock.Mock
}

FileInfo is an autogenerated mock type for the FileInfo type

func (*FileInfo) IsDir

func (_m *FileInfo) IsDir() bool

IsDir provides a mock function with given fields:

func (*FileInfo) ModTime

func (_m *FileInfo) ModTime() time.Time

ModTime provides a mock function with given fields:

func (*FileInfo) Mode

func (_m *FileInfo) Mode() os.FileMode

Mode provides a mock function with given fields:

func (*FileInfo) Name

func (_m *FileInfo) Name() string

Name provides a mock function with given fields:

func (*FileInfo) Size

func (_m *FileInfo) Size() int64

Size provides a mock function with given fields:

func (*FileInfo) Sys

func (_m *FileInfo) Sys() interface{}

Sys provides a mock function with given fields:

type SFTPFile

type SFTPFile struct {
	mock.Mock
}

SFTPFile is an autogenerated mock type for the SFTPFile type

func (*SFTPFile) Close

func (_m *SFTPFile) Close() error

Close provides a mock function with given fields:

func (*SFTPFile) Read

func (_m *SFTPFile) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*SFTPFile) Seek

func (_m *SFTPFile) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*SFTPFile) Write

func (_m *SFTPFile) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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