abfidx

package
v3.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABFMetadata

type ABFMetadata struct {
	Index    uint32
	Attached []*abf.ABF_AttachedInterface
}

ABFMetadata represents metadata for ABF.

func (*ABFMetadata) GetIndex

func (m *ABFMetadata) GetIndex() uint32

GetIndex returns index of the ABF.

type ABFMetadataDto

type ABFMetadataDto struct {
	idxmap.NamedMappingEvent
	Metadata *ABFMetadata
}

ABFMetadataDto represents an item sent through watch channel in abfIndex.

type ABFMetadataIndex

type ABFMetadataIndex interface {
	// LookupByName looks up previously stored item identified by name in the mapping.
	LookupByName(name string) (metadata *ABFMetadata, exists bool)

	// LookupByIndex looks up previously stored item identified by index in the mapping.
	LookupByIndex(idx uint32) (name string, metadata *ABFMetadata, exists bool)
}

ABFMetadataIndex provides read-only access to mapping between ABF indexes (generated in the ABF plugin) and ABF names.

type ABFMetadataIndexRW

type ABFMetadataIndexRW interface {
	ABFMetadataIndex
	idxmap.NamedMappingRW
}

ABFMetadataIndexRW is mapping between ABF indexes (generated in the ABF plugin) and ABF names.

func NewABFIndex

func NewABFIndex(logger logging.Logger, title string) ABFMetadataIndexRW

NewABFIndex creates new instance of abfMetadataIndex.

type Attached

type Attached struct {
	Name     string
	IsIPv6   bool
	Priority uint32
}

Attached is helper struct for metadata (ABF attached interface).

Jump to

Keyboard shortcuts

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