idallocation

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const Keyword = "idalloc"

Keyword defines the keyword identifying ID allocation pools.

Variables

This section is empty.

Functions

func Key

func Key(poolName string) string

Key returns the key under which ID allocation pool data should be stored in the data-store.

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all ID allocation pools are persisted.

Types

type AllocationPool

type AllocationPool struct {
	Name  string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Range *AllocationPool_Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"`
	// map of all allocations, key is the allocation "label"
	// describing its purpose (e.g. network name for vrf pool, etc.)
	IdAllocations        map[string]*AllocationPool_Allocation `` /* 188-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

IDAllocation represents a VXLAN VNI allocation made for the specified unique VXLAN name

func (*AllocationPool) Descriptor

func (*AllocationPool) Descriptor() ([]byte, []int)

func (*AllocationPool) GetIdAllocations

func (m *AllocationPool) GetIdAllocations() map[string]*AllocationPool_Allocation

func (*AllocationPool) GetName

func (m *AllocationPool) GetName() string

func (*AllocationPool) GetRange

func (m *AllocationPool) GetRange() *AllocationPool_Range

func (*AllocationPool) ProtoMessage

func (*AllocationPool) ProtoMessage()

func (*AllocationPool) Reset

func (m *AllocationPool) Reset()

func (*AllocationPool) String

func (m *AllocationPool) String() string

func (*AllocationPool) XXX_DiscardUnknown

func (m *AllocationPool) XXX_DiscardUnknown()

func (*AllocationPool) XXX_Marshal

func (m *AllocationPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationPool) XXX_Merge

func (m *AllocationPool) XXX_Merge(src proto.Message)

func (*AllocationPool) XXX_Size

func (m *AllocationPool) XXX_Size() int

func (*AllocationPool) XXX_Unmarshal

func (m *AllocationPool) XXX_Unmarshal(b []byte) error

type AllocationPool_Allocation

type AllocationPool_Allocation struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Owner                string   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocationPool_Allocation) Descriptor

func (*AllocationPool_Allocation) Descriptor() ([]byte, []int)

func (*AllocationPool_Allocation) GetId

func (m *AllocationPool_Allocation) GetId() uint32

func (*AllocationPool_Allocation) GetOwner

func (m *AllocationPool_Allocation) GetOwner() string

func (*AllocationPool_Allocation) ProtoMessage

func (*AllocationPool_Allocation) ProtoMessage()

func (*AllocationPool_Allocation) Reset

func (m *AllocationPool_Allocation) Reset()

func (*AllocationPool_Allocation) String

func (m *AllocationPool_Allocation) String() string

func (*AllocationPool_Allocation) XXX_DiscardUnknown

func (m *AllocationPool_Allocation) XXX_DiscardUnknown()

func (*AllocationPool_Allocation) XXX_Marshal

func (m *AllocationPool_Allocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationPool_Allocation) XXX_Merge

func (m *AllocationPool_Allocation) XXX_Merge(src proto.Message)

func (*AllocationPool_Allocation) XXX_Size

func (m *AllocationPool_Allocation) XXX_Size() int

func (*AllocationPool_Allocation) XXX_Unmarshal

func (m *AllocationPool_Allocation) XXX_Unmarshal(b []byte) error

type AllocationPool_Range

type AllocationPool_Range struct {
	MinId                uint32   `protobuf:"varint,1,opt,name=min_id,json=minId,proto3" json:"min_id,omitempty"`
	MaxId                uint32   `protobuf:"varint,2,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"`
	Reserved             []uint32 `protobuf:"varint,3,rep,packed,name=reserved,proto3" json:"reserved,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocationPool_Range) Descriptor

func (*AllocationPool_Range) Descriptor() ([]byte, []int)

func (*AllocationPool_Range) GetMaxId

func (m *AllocationPool_Range) GetMaxId() uint32

func (*AllocationPool_Range) GetMinId

func (m *AllocationPool_Range) GetMinId() uint32

func (*AllocationPool_Range) GetReserved

func (m *AllocationPool_Range) GetReserved() []uint32

func (*AllocationPool_Range) ProtoMessage

func (*AllocationPool_Range) ProtoMessage()

func (*AllocationPool_Range) Reset

func (m *AllocationPool_Range) Reset()

func (*AllocationPool_Range) String

func (m *AllocationPool_Range) String() string

func (*AllocationPool_Range) XXX_DiscardUnknown

func (m *AllocationPool_Range) XXX_DiscardUnknown()

func (*AllocationPool_Range) XXX_Marshal

func (m *AllocationPool_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationPool_Range) XXX_Merge

func (m *AllocationPool_Range) XXX_Merge(src proto.Message)

func (*AllocationPool_Range) XXX_Size

func (m *AllocationPool_Range) XXX_Size() int

func (*AllocationPool_Range) XXX_Unmarshal

func (m *AllocationPool_Range) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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