Required Instance Methodheckj.formic 0.3.0Formic

query(from:logger:)

Queries the state of the resource from the given host.

Resource.swift:16
func query(from: RemoteHost, logger: Logger?) async throws -> (Self?, Date)

Parameters

from

The host to inspect.

logger

An optional logger to record the command output or errors.

Returns

The resource, if it exists, and a timestamp at which is was checked.