2022-06-22 22:24:35 +00:00
|
|
|
package disk
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
var _ Disk = (*sftpDisk)(nil)
|
|
|
|
|
|
|
|
type sftpDisk struct {
|
|
|
|
path string
|
|
|
|
}
|
|
|
|
|
|
|
|
func newSFTP(path string) (Disk, error) {
|
|
|
|
return sftpDisk{path: path}, nil
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) Exists(path string) error { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) Read(path string) ([]byte, error) { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) Write(path string, data []byte) error { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) Remove(path string) error { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) MkDir(path string) error { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) ReadDir(path string) ([]Entry, error) { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) IsNotExist(err error) bool { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) IsExist(err error) bool { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
2023-12-06 03:01:49 +00:00
|
|
|
func (l sftpDisk) Open(path string, flag int) (io.WriteCloser, error) { //nolint
|
2022-06-22 22:24:35 +00:00
|
|
|
panic("implement me")
|
|
|
|
}
|