FleetOptiontypeno test imports ittype FleetOption = ValueOption<string, "none" | "required" | "default", never>;An option of the fleet's own, as the terminal takes one.
What a fleet gives the plugin for DNS: the options of its own, and for a zone the records it wants and the provider that holds them. The plugin holds no provider and no token.
import type { DnsPluginConfig } from "./config.ts";
// a fleet writes { version, subject } and gives it to dnsPluginFleetOptiontypeno test imports ittype FleetOption = ValueOption<string, "none" | "required" | "default", never>;An option of the fleet's own, as the terminal takes one.
DnsSubjecttypeno test imports ittype DnsSubject = {
/** The records the fleet wants in the zone. */
readonly wanted: readonly DnsRecord[];
/** The provider of the zone. */
readonly provider: DnsProvider;
};What is known of one zone.
Refusaltypeno test imports ittype Refusal = { readonly message: string; readonly code: string; readonly exit: "usage" | "findings" | "environment" };Why a zone is not for the plugin to change, in the fleet's own words and code.
DnsPluginConfigtypetype DnsPluginConfig = {
/** The version of the plugin as published. */
readonly version: string;
/** The program … (550 characters)type DnsPluginConfig = {
/** The version of the plugin as published. */
readonly version: string;
/** The program the plugin extends: `archon` by default. */
readonly program?: string;
/** The options of the fleet's own (where the tenant is, where the token is), by name. */
readonly options?: Readonly<Record<string, FleetOption>>;
/** The records and the provider of a zone, given the options the person gave. */
readonly subject: (zone: string, options: Readonly<Record<string, string>>) => Promise<Result<DnsSubject, Refusal>>;
};What the plugin is made with.