handlers

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAllocatorFunc

type GetAllocatorFunc = func(s *allocator.RangeSet, poolName string, session storePkg.Session) allocator.IPAllocator

type Handlers

type Handlers struct {
	nodev1.UnsafeIPAMServiceServer
	// contains filtered or unexported fields
}

Handlers contains implementation of the GRPC endpoints handlers for ipam-daemon

func New

func New(poolConfReader poolPkg.ConfigReader, store storePkg.Store, getAllocFunc GetAllocatorFunc) *Handlers

New create and initialize new instance of grpc Handlers

func (*Handlers) Allocate

Allocate is the handler for Allocate GRPC endpoint

func (*Handlers) Deallocate

Deallocate is the handler for Deallocate GRPC endpoint

func (*Handlers) IsAllocated

IsAllocated is the handler for IsAllocated GRPC endpoint

type PoolAlloc

type PoolAlloc struct {
	Pool string
	*current.IPConfig
}

PoolAlloc container which store Pool name and allocation

Jump to

Keyboard shortcuts

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