Instance Methodheckj.formic 0.3.0Formic
run(host:logger:)
Dpkg.swift:97func run(host: RemoteHost, logger: Logger?) async throws -> CommandOutput
func run(host: RemoteHost, logger: Logger?) async throws -> CommandOutput
s6Formic4DpkgV24DebianPackageDeclarationV3run4host6loggerAA13CommandOutputVAA10RemoteHostV_7Logging6LoggerVSgtYaKF
What are these?2MHJA
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct DebianPackageDeclaration
The declaration for a Debian package resource.
struct Dpkg
A debian package resource.
struct RemoteHost
A local or remote host.
struct Logger
A Logger
is the central type in SwiftLog
. Its central function is to emit log messages using one of the methods corresponding to a log level.
struct CommandOutput
The structured output of a shell command.
init(name: String, state: DesiredPackageState, retry: Backoff = .never, resolveTimeout: Duration = .seconds(60))
Creates a new declaration for a Debian package resource
var declaredState: DesiredPackageState
The desired state of the package.
var executionTimeout: Duration
var id: UUID
var ignoreFailure: Bool
var name: String
The name of the package.
var retry: Backoff
enum DesiredPackageState
The configurable state of a debian package.