Class CSHetznerDNSConfigurator
java.lang.Object
com.io7m.certusine.hetzner.internal.CSHetznerDNSConfigurator
- All Implemented Interfaces:
CSDNSConfiguratorType
A Hetzner DNS configurator.
-
Constructor Summary
ConstructorsConstructorDescriptionCSHetznerDNSConfigurator(CSHetznerStrings inStrings, String inDomainName, String inZone, String inApiKey, String inApiBase) A Hetzner DNS configurator. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTXTRecord(CSTelemetryServiceType telemetry, CSDNSRecordNameType recordName, String recordValue) Create a TXT record with the given text.voiddeleteTXTRecord(CSTelemetryServiceType telemetry, CSDNSRecordNameType recordName, String recordValue) Delete a TXT record with the given text.listTXTRecords(CSTelemetryServiceType telemetry) List TXT records.
-
Constructor Details
-
CSHetznerDNSConfigurator
public CSHetznerDNSConfigurator(CSHetznerStrings inStrings, String inDomainName, String inZone, String inApiKey, String inApiBase) A Hetzner DNS configurator.- Parameters:
inStrings- String resourcesinDomainName- The domain nameinZone- The owning zone IDinApiKey- The Hetzner API keyinApiBase- The API base address
-
-
Method Details
-
createTXTRecord
public void createTXTRecord(CSTelemetryServiceType telemetry, CSDNSRecordNameType recordName, String recordValue) throws IOException, InterruptedException Description copied from interface:CSDNSConfiguratorTypeCreate a TXT record with the given text.- Specified by:
createTXTRecordin interfaceCSDNSConfiguratorType- Parameters:
telemetry- A telemetry service used to report resultsrecordName- The record namerecordValue- The text- Throws:
IOException- On errorsInterruptedException- On thread interruption
-
deleteTXTRecord
public void deleteTXTRecord(CSTelemetryServiceType telemetry, CSDNSRecordNameType recordName, String recordValue) throws IOException, InterruptedException Description copied from interface:CSDNSConfiguratorTypeDelete a TXT record with the given text.- Specified by:
deleteTXTRecordin interfaceCSDNSConfiguratorType- Parameters:
telemetry- A telemetry service used to report resultsrecordName- The record namerecordValue- The text- Throws:
IOException- On errorsInterruptedException- On thread interruption
-
listTXTRecords
public List<CSHetznerDNSRecord> listTXTRecords(CSTelemetryServiceType telemetry) throws IOException, InterruptedException List TXT records.- Parameters:
telemetry- The telemetry service- Returns:
- The TXT records
- Throws:
IOException- On errorsInterruptedException- On interruption
-