This repository has been archived on 2026-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2026-01-10 13:23:43 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-08 11:46:33 +01:00
2026-01-10 13:10:29 +01:00
2026-01-10 13:10:29 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 09:17:03 +01:00
2026-01-07 18:23:52 +01:00
2026-01-07 09:17:03 +01:00

data-smasher

The ./tests/ directory provides an example key and convenience script for testing data propagation. Use ./tests/run-two-nodes.sh to start two nodes, then data can be send to one of them with:

./tests/send-test-data.py 8082 testfile "test"

Run clan service tests with:

nix build .#checks.x86_64-linux.dns-mesher --rebuild --print-build-logs

Services usage:

# Add input
dns-mesher.url = "git+https://git.clan.lol/pinpox/data-smasher";
dns-mesher.inputs.nixpkgs.follows = "nixpkgs";

# ... ther stuff

clan = clan-core.lib.clan {

  modules."@pinpox/dns-mesher" = dns-mesher.clanModules.dns-mesher;

  # Include dns-mesher's custom exports module for endpoints
  exportsModule = dns-mesher.clanExportsModule;

  inventory = {
    instances = {

      dns-mesher = {
        module.input = "self";
        module.name = "@pinpox/dns-mesher";

        # Add the default role to all machines
        roles.default.tags = [ "all" ];

        # Deploy example service that exports an endpoint somewhere
        roles.exampleservice.machines.hostA = { };
      };
    };
  };
};
S
Description
No description provided
Readme
190 KiB
Languages
Nix 52.5%
Go 28.4%
Python 15.7%
Shell 3.4%