Documentation
¶
Overview ¶
Package network provides VM networking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CNITeardown ¶
CNITeardown removes CNI configuration for a VM.
Types ¶
type TapManager ¶
type TapManager struct {
// contains filtered or unexported fields
}
TapManager manages TAP devices for microVM networking.
func NewTapManager ¶
func NewTapManager(bridge, subnet string) *TapManager
NewTapManager creates a TAP device manager.
func (*TapManager) CreateTap ¶
func (t *TapManager) CreateTap(vmID string) (string, error)
CreateTap creates a TAP device for a VM.
func (*TapManager) DeleteTap ¶
func (t *TapManager) DeleteTap(tapName string) error
DeleteTap removes a TAP device.
func (*TapManager) EnableMasquerade ¶
func (t *TapManager) EnableMasquerade() error
EnableMasquerade enables NAT for the bridge subnet.
func (*TapManager) SetupBridge ¶
func (t *TapManager) SetupBridge() error
SetupBridge creates or ensures a bridge device exists.
func (*TapManager) TeardownBridge ¶
func (t *TapManager) TeardownBridge()
TeardownBridge removes the bridge device.
Click to show internal directories.
Click to hide internal directories.