diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-06 12:37:26 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-06 12:37:26 +0100 |
commit | 9504c7efb9b57aeacf5e2717a43c3cf178a65aee (patch) | |
tree | c1d5e78dcb0054e11f39e449b90e4f98aa5e0031 /module/acme/src/main/java/io | |
parent | b40cab15f4d01a4e8455e5808ca82e40ff291a92 (diff) | |
download | rules-sandbox-9504c7efb9b57aeacf5e2717a43c3cf178a65aee.tar.gz rules-sandbox-9504c7efb9b57aeacf5e2717a43c3cf178a65aee.tar.bz2 rules-sandbox-9504c7efb9b57aeacf5e2717a43c3cf178a65aee.tar.xz rules-sandbox-9504c7efb9b57aeacf5e2717a43c3cf178a65aee.zip |
Splitting ACME out from the generic parts.
Diffstat (limited to 'module/acme/src/main/java/io')
3 files changed, 35 insertions, 0 deletions
diff --git a/module/acme/src/main/java/io/trygvis/acme/AcmeMyApp.java b/module/acme/src/main/java/io/trygvis/acme/AcmeMyApp.java new file mode 100644 index 0000000..dfe374b --- /dev/null +++ b/module/acme/src/main/java/io/trygvis/acme/AcmeMyApp.java @@ -0,0 +1,6 @@ +package io.trygvis.acme; + +public class AcmeMyApp { + public String environment; + public String dockerTag; +} diff --git a/module/acme/src/main/java/io/trygvis/acme/AcmeOps.java b/module/acme/src/main/java/io/trygvis/acme/AcmeOps.java new file mode 100644 index 0000000..844c7f0 --- /dev/null +++ b/module/acme/src/main/java/io/trygvis/acme/AcmeOps.java @@ -0,0 +1,4 @@ +package io.trygvis.acme; + +public class AcmeOps { +} diff --git a/module/acme/src/main/java/io/trygvis/acme/VpnMain.java b/module/acme/src/main/java/io/trygvis/acme/VpnMain.java new file mode 100644 index 0000000..d5f986d --- /dev/null +++ b/module/acme/src/main/java/io/trygvis/acme/VpnMain.java @@ -0,0 +1,25 @@ +package io.trygvis.acme; + +import io.trygvis.rules.dns.DnsEntry; +import io.trygvis.rules.engine.Engine; +import io.trygvis.rules.machine.Machine; +import io.trygvis.rules.network.Ipv4Address; +import io.trygvis.rules.network.Ipv4Cidr; + +import java.io.IOException; + +public class VpnMain { + public static void main(String[] args) throws IOException { + try (var engine = new Engine("acme.yaml")) { + engine.io.dump("phase-1", engine.session.getFactHandles()); + + engine.io.dump("vpn0", engine.session.getFactHandles(), (Object o) -> + o.getClass().getName().contains("Wg") + || o instanceof Machine + || o instanceof DnsEntry + || o instanceof Ipv4Cidr + || o instanceof Ipv4Address + ); + } + } +} |