version
The version of the package.
let version: String
The version of the package.
let version: String
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct Dpkg
A debian package resource.
@frozen struct String
A Unicode string value that is a collection of characters.
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.
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.
struct DebianPackageDeclaration
The declaration for a Debian package resource.
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.