Static Method (Default implementation)heckj.formic 0.3.0Formic

query(from:logger:)

Queries the state of the resource from the given host.

SingularResource.swift:26
static func query(from host: RemoteHost, logger: Logger?) async throws -> (Self?, Date)

Parameters

host

The host to inspect.

logger

An optional logger to record the command output or errors.

Returns

The state of the resource and the time that it was last updated.