vlan

package
v0.1.41 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAllocation = errors.New("allocation failure")
)

Functions

This section is empty.

Types

type Allocator

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

func New

func New(client client.Client, namespace, name string, spec *unikornv1.VLANSpec) *Allocator

func (*Allocator) Allocate

func (a *Allocator) Allocate(ctx context.Context, physicalNetworkID string) (int, error)

func (*Allocator) Free

func (a *Allocator) Free(ctx context.Context, id int) error

Jump to

Keyboard shortcuts

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