Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureFolder(prefix string, settings map[string]string) (storage.Folder, error)
- func NewFolderError(err error, format string, args ...interface{}) storage.Error
- type Folder
- func (folder *Folder) CopyObject(srcPath string, dstPath string) error
- func (folder *Folder) DeleteObjects(objectRelativePaths []string) error
- func (folder *Folder) Exists(objectRelativePath string) (bool, error)
- func (folder *Folder) GetPath() string
- func (folder *Folder) GetSubFolder(subFolderRelativePath string) storage.Folder
- func (folder *Folder) ListFolder() (objects []storage.Object, subFolders []storage.Folder, err error)
- func (folder *Folder) PutObject(name string, content io.Reader) error
- func (folder *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
- type SftpClient
Constants ¶
View Source
const ( Port = "SSH_PORT" Password = "SSH_PASSWORD" Username = "SSH_USERNAME" PrivateKeyPath = "SSH_PRIVATE_KEY_PATH" )
Variables ¶
View Source
var SettingsList = []string{ Port, Password, Username, PrivateKeyPath, }
Functions ¶
func ConfigureFolder ¶
Types ¶
type Folder ¶
type Folder struct {
// contains filtered or unexported fields
}
func (*Folder) DeleteObjects ¶
func (*Folder) GetSubFolder ¶
func (*Folder) ListFolder ¶
func (*Folder) ReadObject ¶
func (folder *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
type SftpClient ¶
Click to show internal directories.
Click to hide internal directories.