resolve(state:on:logger:)
Dpkg.swift:175static func resolve(state: DebianPackageDeclaration, on host: RemoteHost, logger: Logger?) async throws -> Bool
static func resolve(state: DebianPackageDeclaration, on host: RemoteHost, logger: Logger?) async throws -> Bool
s6Formic4DpkgV7resolve5state2on6loggerSbAC24DebianPackageDeclarationV_AA10RemoteHostV7Logging6LoggerVSgtYaKFZ
What are these?4MSRJ
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct Dpkg
A debian package resource.
struct DebianPackageDeclaration
The declaration for 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.
@frozen struct Bool
A value type whose instances are either true
or false
.
static var collectionInquiry: (any Command) { get }
static func collectionParse(_ output: Data) throws -> [Dpkg]
static func namedInquiry(_ name: String) -> (any Command)
static func parse(_ output: Data) throws -> Dpkg?
Returns the state of the resource from the output of the shell command.
static func query(state: DebianPackageDeclaration, from host: RemoteHost, logger: Logger?) async throws -> (Dpkg?, Date)
Queries and returns the state of the resource identified by a declaration you provide.
let architecture: String
The architecture the package supports.
let description: String
The description of the package.
let desiredState: DesiredState
The desired state code of this resource from the Dpkg system.
let errCode: ErrCode
The error code of this resource from the Dpkg system.
var inquiry: (any Command) { get }
let name: String
The name of the package.
let statusCode: StatusCode
The status code of this resource from the Dpkg system.
let version: String
The version of the package.
enum DesiredState
The desired state code from the Dpkg system.
enum ErrCode
The error code from the Dpkg system.
enum StatusCode
The status code from the Dpkg system.