networkinterface

package
v0.0.0-...-57b88d1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
	Isolated        *Isolated
	ProviderNetwork *ProviderNetwork
	IPs             []net.IP
}

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
}

type Spec

type Spec struct {
	ComputeNetworkInterface *computev1alpha1.NetworkInterface
	NetworkInterface        *networkingv1alpha1.NetworkInterface
	Network                 *networkingv1alpha1.Network
	VirtualIP               *networkingv1alpha1.VirtualIP
}

func GetSpec

func GetSpec(ctx context.Context, c client.Reader, namespace, machineName string, computeNic *computev1alpha1.NetworkInterface) (*Spec, error)

func (*Spec) NetworkInterfaceName

func (s *Spec) NetworkInterfaceName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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