initial commit

This commit is contained in:
2025-11-23 11:29:12 +07:00
commit 382b57ed83
33 changed files with 2360 additions and 0 deletions

15
pkg/network/network.go Normal file
View File

@@ -0,0 +1,15 @@
package network
// BridgeManager handles host bridge/VLAN setup.
type BridgeManager interface {
EnsureBridge(name string, vlanAware bool, mtu int) error
List() ([]Bridge, error)
}
type Bridge struct {
Name string
VlanAware bool
MTU int
}
// TODO: implement using systemd-networkd/ifupdown2 files in /etc/jagacloud/network.