vlanconfig

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "harvester-network-vlanconfig-controller"
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, management *config.Management) error

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (Handler) AddLocalAreas

func (h Handler) AddLocalAreas(v *vlan.Vlan, localAreas []*vlan.LocalArea) error

func (Handler) MatchNode

func (h Handler) MatchNode(vc *networkv1.VlanConfig) (bool, error)

MatchNode will also return the executed vlanconfig with the same clusterNetwork on this node if existing

func (Handler) OnChange

func (h Handler) OnChange(_ string, vc *networkv1.VlanConfig) (*networkv1.VlanConfig, error)

func (Handler) OnRemove

func (h Handler) OnRemove(_ string, vc *networkv1.VlanConfig) (*networkv1.VlanConfig, error)

Jump to

Keyboard shortcuts

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