works enough for now
This commit is contained in:
commit
c04a9a752a
12 changed files with 178 additions and 0 deletions
17
compiler/models.py
Normal file
17
compiler/models.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Service:
|
||||
name: str
|
||||
internal_ip: str
|
||||
internal_port: int
|
||||
public_port: int
|
||||
protocol: str
|
||||
exposure: set[str]
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GlobalConfig:
|
||||
wan_interface: str
|
||||
public_ip: str
|
||||
lan_interface: str
|
||||
internal_cidr: str
|
||||
Loading…
Add table
Add a link
Reference in a new issue