gatekeeper_server library
Gatekeeper - Server
Classes
- Gatekeeper
- The Gatekeeper class manages TCP port access by interfacing with the GatekeeperDriver. It provides functionality to list, block, and unblock TCP ports with optional permission checks and sudo privileges.
- GatekeeperDriver
- The GatekeeperDriver class is an abstract class that defines the contract for interacting with the system to manage TCP port access, resolve binary paths, and run commands.
- GatekeeperIpTables
-
The GatekeeperIpTables class is a concrete implementation of GatekeeperDriver
that uses
iptables
or a similar utility to manage TCP ports on a system. - GatekeeperMock
- The GatekeeperMock class is a mock implementation of GatekeeperDriver used for testing or simulating behaviors without interacting with actual system resources like iptables.
- GatekeeperServer
-
The GatekeeperServer class represents a server that interacts with a Gatekeeper
instance to manage connections and access control. It listens for incoming connections
on a specified port and address, using an
accessKey
for security authentication.
Constants
- gatekeeperVersion → const String