Protocolheckj.formic 0.3.0Formic
StatefulResource
A type of resource that can be retrieved and resolved to a desired state using a declaration.
protocol StatefulResource<DeclarativeStateType> : Resource
Browse conforming typesA type of resource that can be retrieved and resolved to a desired state using a declaration.
protocol StatefulResource<DeclarativeStateType> : Resource
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
associatedtype DeclarativeStateType : Hashable, Sendable
protocol Resource : Hashable, Sendable
A type that can be queried from a host to provide information about itself.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func query(state: DeclarativeStateType, from host: RemoteHost, logger: Logger?) async throws -> (Self?, Date)
Queries and returns the resource, if it exists, identified by a declaration you provide.
static func resolve(state: DeclarativeStateType, on host: RemoteHost, logger: Logger?) async throws -> Bool
Queries and attempts to resolve the update to the desired state you provide.
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.
enum ResourceError
An error that occurs when running a command.