package ftp
- Alphabetic
- By Inheritance
- ftp
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class ConnectionError(message: String, cause: Throwable) extends IOException with Product with Serializable
- final case class FileTransferIncompleteError(message: String) extends IOException with Product with Serializable
- type Ftp = Has[FtpAccessors[Client]]
- trait FtpAccessors[+A] extends AnyRef
-
final
case class
FtpCredentials(username: String, password: String) extends Product with Serializable
Credential used during ftp authentication
Credential used during ftp authentication
- username
identifier of the user in plain text
- password
secure secret of the user in plain text
-
final
case class
FtpResource(path: String, size: Long, lastModified: Long, permissions: Set[PosixFilePermission], isDirectory: Option[Boolean]) extends Product with Serializable
Represent a file / directory / symbolic link on a ftp server
Represent a file / directory / symbolic link on a ftp server
- path
location on the resource on the ftp server
- size
size in bytes
- lastModified
last modified date as a timestamp
- permissions
linux file system permissions
- isDirectory
boolean flag: 'true' if it is a directory, 'false' if it is a file. In some situation we cannot determine the type of the resource
- final case class InvalidPathError(message: String) extends IOException with Product with Serializable
-
final
case class
KeyFileSftpIdentity(privateKey: Path, passphrase: Option[String] = None) extends SftpIdentity with Product with Serializable
SFTP identity for authenticating using private/public key file
SFTP identity for authenticating using private/public key file
- privateKey
private key file to use when connecting
- passphrase
password to use to decrypt private key file
-
final
case class
RawKeySftpIdentity(privateKey: String, passphrase: Option[String] = None, publicKey: Option[String] = None) extends SftpIdentity with Product with Serializable
SFTP identity for authenticating using private/public key value
SFTP identity for authenticating using private/public key value
- privateKey
private key value to use when connecting
- passphrase
password to use to decrypt private key
- publicKey
public key value to use when connecting
- type SFtp = Has[FtpAccessors[Client]]
-
final
case class
SecureFtpSettings(host: String, port: Int, credentials: FtpCredentials, sftpIdentity: Option[SftpIdentity], strictHostKeyChecking: Boolean, knownHosts: Option[String], proxy: Option[Proxy], sshConfig: Config) extends Product with Serializable
Settings to connect to a secure Ftp server (Ftp over ssh)
Settings to connect to a secure Ftp server (Ftp over ssh)
- host
hostname of ftp server (ipAddress / dnsName)
- port
port of communication used by the server
- credentials
auth credentials
- sftpIdentity
private/public key config to use when connecting
- strictHostKeyChecking
sets whether to use strict host key checking.
- knownHosts
known hosts file to be used when connecting
- sshConfig
configuration of ssh client
- sealed trait SftpIdentity extends AnyRef
- type StubFtp = Has[FtpAccessors[Unit]]
-
final
case class
UnsecureFtpSettings(host: String, port: Int, credentials: FtpCredentials, binary: Boolean, passiveMode: Boolean, proxy: Option[Proxy], secure: Boolean, dataTimeout: Option[Duration] = None, controlEncoding: Option[String] = None) extends Product with Serializable
Settings to connect unsecure Ftp server
Settings to connect unsecure Ftp server
- host
hostname of ftp server (ipAddress / dnsName)
- port
port of communication used by the server
- credentials
credentials (username and password)
- binary
specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false)
- passiveMode
specifies whether to use passive mode connections. Default is active mode (false)
- proxy
An optional proxy to use when connecting with these settings
- secure
Use FTP over SSL
- dataTimeout
Sets the timeout to use when reading from the data connection.
- controlEncoding
character encoding to be used by the FTP control connection, auto-detects UTF-8 if None
Value Members
- def secure(settings: SecureFtpSettings): ZLayer[Blocking, ConnectionError, SFtp]
- def stub(path: Path): Layer[Any, StubFtp]
- def unsecure(settings: UnsecureFtpSettings): ZLayer[Blocking, ConnectionError, Ftp]
- object ConnectionError extends Serializable
- object Ftp
- object FtpResource extends Serializable
- object KeyFileSftpIdentity extends Serializable
- object RawKeySftpIdentity extends Serializable
- object SFtp
- object SecureFtp
- object SecureFtpSettings extends Serializable
- object StubFtp
- object TestFtp
- object UnsecureFtp
- object UnsecureFtpSettings extends Serializable