networkinterface

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotReady = errors.New("network interface not ready")

Functions

This section is empty.

Types

type Direct added in v0.2.0

type Direct struct {
	Dev string
}

type EventHandler added in v0.3.1

type EventHandler interface {
	HandleNICEvent(machineID string)
}

type EventHandlerFuncs added in v0.3.1

type EventHandlerFuncs struct {
	HandleNICEventFunc func(machineID string)
}

func (EventHandlerFuncs) HandleNICEvent added in v0.3.1

func (l EventHandlerFuncs) HandleNICEvent(machineID string)

type HostDevice

type HostDevice struct {
	Domain   uint
	Bus      uint
	Slot     uint
	Function uint
}

type Isolated

type Isolated struct{}

type NetworkInterface

type NetworkInterface struct {
	Handle          string
	HostDevice      *HostDevice
	Direct          *Direct
	Isolated        *Isolated
	ProviderNetwork *ProviderNetwork
}

type Plugin

type Plugin interface {
	Name() string
	Init(ctx context.Context, host providerhost.LibvirtHost) error
	AddEventHandler(handler EventHandler)

	Apply(ctx context.Context, spec *api.NetworkInterfaceSpec, machine *api.Machine) (*NetworkInterface, error)
	Delete(ctx context.Context, computeNicName string, machineID string) error
}

type ProviderNetwork

type ProviderNetwork struct {
	NetworkName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL