Protocolheckj.formic 0.3.0Formic
Resource
A type that can be queried from a host to provide information about itself.
protocol Resource : Hashable, Sendable
Browse conforming typesA type that can be queried from a host to provide information about itself.
protocol Resource : Hashable, Sendable
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
protocol Equatable
A type that can be compared for value equality.
func query(from: RemoteHost, logger: Logger?) async throws -> (Self?, Date)
Queries the state of the resource from the given host.
struct OperatingSystem
The kind of operating system.
struct Dpkg
A debian package resource.
protocol ParsedResource : Resource
A resource that provides an inquiry command and parser to return the state of the resource.
protocol StatefulResource<DeclarativeStateType> : Resource
A type of resource that can be retrieved and resolved to a desired state using a declaration.
enum ResourceError
An error that occurs when running a command.
protocol CollectionResource : ParsedResource
A collection of resources that can be found and queried from a host.
protocol SingularResource : ParsedResource
A type of resource that exists in singular form on a Host.