Class CSGandiDNSConfigurator
java.lang.Object
com.io7m.certusine.gandi.internal.CSGandiDNSConfigurator
- All Implemented Interfaces:
CSDNSConfiguratorType
A Gandi DNS configurator.
-
Constructor Summary
ConstructorsConstructorDescriptionCSGandiDNSConfigurator(CSGandiStrings inStrings, String inDomain, String inApiKey, String inApiBase) A Gandi 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.
-
Constructor Details
-
CSGandiDNSConfigurator
public CSGandiDNSConfigurator(CSGandiStrings inStrings, String inDomain, String inApiKey, String inApiBase) A Gandi DNS configurator.- Parameters:
inStrings- String resourcesinDomain- The owning domaininApiKey- The Gandi 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
-