Documentation ¶ Index ¶ Variables type Allocator func New(client client.Client, namespace, name string, spec *unikornv1.VLANSpec) *Allocator func (a *Allocator) Allocate(ctx context.Context, physicalNetworkID string) (int, error) func (a *Allocator) Free(ctx context.Context, id int) error 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 Source Files ¶ View all Source files vlan.go Click to show internal directories. Click to hide internal directories.