Instance Propertyheckj.formic 0.3.0Formic
errCode
The error code of this resource from the Dpkg system.
let errCode: ErrCode
The error code of this resource from the Dpkg system.
let errCode: ErrCode
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct Dpkg
A debian package resource.
enum ErrCode
The error code from the Dpkg system.
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.
static func resolve(state: DebianPackageDeclaration, on host: RemoteHost, logger: Logger?) async throws -> Bool
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.
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.
struct DebianPackageDeclaration
The declaration for a Debian package resource.
enum DesiredState
The desired state code from the Dpkg system.
enum StatusCode
The status code from the Dpkg system.