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 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 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
}
Click to show internal directories.
Click to hide internal directories.