diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-01 23:13:14 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-01 23:13:14 +0100 |
commit | 1911481101e15463c8aecbdc03a6ce5b63b0d68f (patch) | |
tree | 254e8fe5e8cffb0cee35f77e1b9bfaa071d16489 /src/main/java/io/trygvis/rules/dns | |
parent | e4821f82249bddb443a1f6a6e403087cab659c6d (diff) | |
download | rules-sandbox-1911481101e15463c8aecbdc03a6ce5b63b0d68f.tar.gz rules-sandbox-1911481101e15463c8aecbdc03a6ce5b63b0d68f.tar.bz2 rules-sandbox-1911481101e15463c8aecbdc03a6ce5b63b0d68f.tar.xz rules-sandbox-1911481101e15463c8aecbdc03a6ce5b63b0d68f.zip |
Generating DNS too.
Diffstat (limited to 'src/main/java/io/trygvis/rules/dns')
-rw-r--r-- | src/main/java/io/trygvis/rules/dns/DnsEntry.java | 8 | ||||
-rw-r--r-- | src/main/java/io/trygvis/rules/dns/DnsEntryTerraformExpression.java | 21 |
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; + } +} |