Initializerheckj.formic 0.3.0Formic
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct RemoteHost
A local or remote host.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(_ networkAddress: NetworkAddress, sshPort: Int = 22, sshUser: String? = nil, sshIdentityFile: String? = nil, strictHostKeyChecking: Bool = false) throws
Creates a new host using the NetworkAddress you provide.
init?(_ name: String, sshPort: Int = 22, sshUser: String? = nil, sshIdentityFile: String? = nil, strictHostKeyChecking: Bool = false) throws
Creates a new host without attempting DNS resolution.
init?(argument: String)
Creates a new host from a string.
static func resolve(_ name: String, sshPort: Int = 22, sshUser: String? = nil, sshIdentityFile: String? = nil, strictHostKeyChecking: Bool = false) async throws -> RemoteHost
Creates a new host using DNS name resolution.
var debugDescription: String { get }
The debug description of the host.
var description: String { get }
The description of the host.
let networkAddress: NetworkAddress
The network address.
let sshAccessCredentials: SSHAccessCredentials
The credentials to use for SSH access.
let sshPort: Int
The port to use for SSH access.
let strictHostKeyChecking: Bool
A Boolean value that indicates whether to enable strict host checking during SSH connections.
struct IPv4Address
An IPv4 address.
struct NetworkAddress
A network address, either an IP address or a DNS name.
struct SSHAccessCredentials
SSH Credentials for accessing a remote host.