Instance Methodheckj.formic 0.3.0Formic
hash(into:)
Combines elements of the command to generate a hash value.
func hash(into hasher: inout Hasher)
Parameters
- hasher
The hasher to use when combining the components of the command.
Combines elements of the command to generate a hash value.
func hash(into hasher: inout Hasher)
The hasher to use when combining the components of the command.
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct AnyCommand
A general command that is run against a host.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
init(name: String, ignoreFailure: Bool, retry: Backoff, executionTimeout: Duration, commandClosure: @escaping (RemoteHost, Logger?) async throws -> CommandOutput)
Invokes a command on the host to verify access.
var description: String { get }
A textual representation of the command.
let executionTimeout: Duration
The maximum duration to allow for the command.
let id: UUID
The ID of the command.
let ignoreFailure: Bool
A Boolean value that indicates whether a failing command should fail a playbook.
let retry: Backoff
The retry settings for the command.
static func == (lhs: AnyCommand, rhs: AnyCommand) -> Bool
Returns a Boolean value that indicates whether the two commands are equal.
@discardableResult func run(host: RemoteHost, logger: Logger?) async throws -> CommandOutput