Documentation
¶
Index ¶
- func CleanupTAPs(vmIDs []string) []string
- func GCModule(rootDir string) gc.Module[bridgeSnapshot]
- type Bridge
- func (b *Bridge) Add(ctx context.Context, vmID string, vmCfg *types.VMConfig, ...) (configs []*types.NetworkConfig, retErr error)
- func (b *Bridge) Delete(_ context.Context, vmIDs []string) ([]string, error)
- func (b *Bridge) Inspect(_ context.Context, _ string) (*types.Network, error)
- func (b *Bridge) List(_ context.Context) ([]*types.Network, error)
- func (b *Bridge) Prepare(_ context.Context, _ string, _ *types.VMConfig) (string, error)
- func (b *Bridge) RegisterGC(orch *gc.Orchestrator)
- func (b *Bridge) Remove(_ context.Context, vmID string, indices ...int) error
- func (b *Bridge) Type() string
- func (b *Bridge) Verify(_ context.Context, vmID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTAPs ¶
CleanupTAPs removes bridge TAP devices per VM ID; safe without a Bridge instance.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge is TAP-on-bridge; requires a pre-existing bridge with DHCP + routing.
func (*Bridge) RegisterGC ¶
func (b *Bridge) RegisterGC(orch *gc.Orchestrator)
RegisterGC reclaims orphan bt* TAP devices.
Click to show internal directories.
Click to hide internal directories.