Documentation ¶
Index ¶
- type Downloader
- type FileInfoMap
- type FtpClient
- type MockFile
- type MockFtpClient
- func (m MockFtpClient) Close() error
- func (m MockFtpClient) ReadDir(path string) ([]os.FileInfo, error)
- func (m MockFtpClient) Retrieve(path string, dest io.Writer) error
- func (m *MockFtpClient) SetDirContent(path string, filenames []string)
- func (m *MockFtpClient) SetFileContent(path string, content []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(client FtpClient, ftpPath string, storagePath string, filePrefix string) *Downloader
func (*Downloader) Sync ¶
func (f *Downloader) Sync() ([]string, error)
type FileInfoMap ¶
type FtpClient ¶
type MockFtpClient ¶
type MockFtpClient struct {
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient() MockFtpClient
func (MockFtpClient) Close ¶
func (m MockFtpClient) Close() error
func (*MockFtpClient) SetDirContent ¶
func (m *MockFtpClient) SetDirContent(path string, filenames []string)
func (*MockFtpClient) SetFileContent ¶
func (m *MockFtpClient) SetFileContent(path string, content []byte)
Click to show internal directories.
Click to hide internal directories.