Documentation ¶
Index ¶
- Variables
- type FTPStorage
- func (backend *FTPStorage) AvailableSpace() (uint64, error)
- func (backend *FTPStorage) Close() error
- func (backend *FTPStorage) CreatePath(path string) error
- func (backend *FTPStorage) DeleteFile(path string) error
- func (backend *FTPStorage) DeletePath(path string) error
- func (backend *FTPStorage) Description() string
- func (backend *FTPStorage) Location() string
- func (*FTPStorage) NewBackend(u url.URL) (knoxite.Backend, error)
- func (backend *FTPStorage) Protocols() []string
- func (backend *FTPStorage) ReadFile(path string) ([]byte, error)
- func (backend *FTPStorage) Stat(path string) (uint64, error)
- func (backend *FTPStorage) WriteFile(path string, data []byte) (size uint64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidAuthentication = errors.New("wrong Username or Password")
)
Error declarations.
Functions ¶
This section is empty.
Types ¶
type FTPStorage ¶
type FTPStorage struct { knoxite.StorageFilesystem // contains filtered or unexported fields }
FTPStorage stores data on a remote FTP.
func (*FTPStorage) AvailableSpace ¶
func (backend *FTPStorage) AvailableSpace() (uint64, error)
AvailableSpace returns the free space on this backen.
func (*FTPStorage) CreatePath ¶
func (backend *FTPStorage) CreatePath(path string) error
CreatePath creates a dir including all its parent dirs, when required.
func (*FTPStorage) DeleteFile ¶
func (backend *FTPStorage) DeleteFile(path string) error
DeleteFile deletes a file from ftp.
func (*FTPStorage) DeletePath ¶
func (backend *FTPStorage) DeletePath(path string) error
DeletePath deletes a directory including all its content from ftp.
func (*FTPStorage) Description ¶
func (backend *FTPStorage) Description() string
Description returns a user-friendly description for this backend.
func (*FTPStorage) Location ¶
func (backend *FTPStorage) Location() string
Location returns the type and location of the repository.
func (*FTPStorage) NewBackend ¶
NewBackend establishes an FTP connection and returns a FTPStorage backend.
func (*FTPStorage) Protocols ¶
func (backend *FTPStorage) Protocols() []string
Protocols returns the Protocol Schemes supported by this backend.
func (*FTPStorage) ReadFile ¶
func (backend *FTPStorage) ReadFile(path string) ([]byte, error)
ReadFile reads a file from ftp.
Click to show internal directories.
Click to hide internal directories.