Documentation ¶
Index ¶
- type RIB
- func (rib *RIB) Add(r Route) error
- func (rib *RIB) Children(cidr netip.Prefix) (r Routes)
- func (rib *RIB) Clone() *RIB
- func (rib *RIB) Delete(r Route) error
- func (rib *RIB) Get(cidr netip.Prefix) (Route, bool)
- func (rib *RIB) GetAvailablePrefixByBitLen(cidr netip.Prefix, b uint8) netip.Prefix
- func (rib *RIB) GetAvailablePrefixes(cidr netip.Prefix) []netip.Prefix
- func (rib *RIB) GetByLabel(selector labels.Selector) Routes
- func (rib *RIB) GetTable() (r Routes)
- func (rib *RIB) Iterate() *RIBIterator
- func (rib *RIB) LPM(cidr netip.Prefix) Routes
- func (rib *RIB) Parents(cidr netip.Prefix) (r Routes)
- func (rib *RIB) Set(r Route) error
- func (rib *RIB) Size() int
- type RIBIterator
- type Route
- func (r Route) Children(rib *RIB) Routes
- func (r Route) DeleteData() Route
- func (r Route) DeleteLabels() Route
- func (r Route) Equal(r2 Route) bool
- func (r Route) Get(label string) string
- func (r Route) GetAvailablePrefixByBitLen(rib *RIB, b uint8) netip.Prefix
- func (r Route) GetAvailablePrefixes(rib *RIB) []netip.Prefix
- func (r Route) GetData() map[string]any
- func (r Route) Has(label string) bool
- func (r Route) Labels() labels.Set
- func (r Route) MarshalJSON() ([]byte, error)
- func (r Route) Parents(rib *RIB) Routes
- func (r Route) Prefix() netip.Prefix
- func (r Route) SetData(d map[string]any) Route
- func (r Route) String() string
- func (r Route) UpdateLabel(label map[string]string) Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RIB ¶
type RIB struct {
// contains filtered or unexported fields
}
func (*RIB) GetAvailablePrefixByBitLen ¶
func (*RIB) GetAvailablePrefixes ¶
func (*RIB) Iterate ¶
func (rib *RIB) Iterate() *RIBIterator
type RIBIterator ¶
type RIBIterator struct {
// contains filtered or unexported fields
}
func (*RIBIterator) Next ¶
func (i *RIBIterator) Next() bool
func (*RIBIterator) Route ¶
func (i *RIBIterator) Route() Route
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (Route) DeleteData ¶ added in v0.0.3
func (Route) DeleteLabels ¶ added in v0.0.5
func (Route) GetAvailablePrefixByBitLen ¶
Click to show internal directories.
Click to hide internal directories.