summaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/rules/dns
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/trygvis/rules/dns')
-rw-r--r--src/main/java/io/trygvis/rules/dns/DnsEntry.java8
-rw-r--r--src/main/java/io/trygvis/rules/dns/DnsEntryTerraformExpression.java21
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/rules/dns/DnsEntry.java b/src/main/java/io/trygvis/rules/dns/DnsEntry.java
index e7d9f4c..105ef79 100644
--- a/src/main/java/io/trygvis/rules/dns/DnsEntry.java
+++ b/src/main/java/io/trygvis/rules/dns/DnsEntry.java
@@ -16,4 +16,12 @@ public class DnsEntry {
public static DnsEntry aaaa(String fqdn) {
return new DnsEntry(fqdn, "AAAA");
}
+
+ public String getFqdn() {
+ return fqdn;
+ }
+
+ public String getType() {
+ return type;
+ }
}
diff --git a/src/main/java/io/trygvis/rules/dns/DnsEntryTerraformExpression.java b/src/main/java/io/trygvis/rules/dns/DnsEntryTerraformExpression.java
new file mode 100644
index 0000000..79bf934
--- /dev/null
+++ b/src/main/java/io/trygvis/rules/dns/DnsEntryTerraformExpression.java
@@ -0,0 +1,21 @@
+package io.trygvis.rules.dns;
+
+public class DnsEntryTerraformExpression {
+ public DnsEntry entry;
+ public String key;
+ public String expression;
+
+ public DnsEntryTerraformExpression(DnsEntry entry, String key, String expression) {
+ this.entry = entry;
+ this.key = key;
+ this.expression = expression;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public String getExpression() {
+ return expression;
+ }
+}