networkinterface

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direct added in v0.2.0

type Direct struct {
	Dev 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(host providerhost.Host) error

	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