abfidx

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 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 {
	// LookupIdx looks up previously stored item identified by index in the mapping.
	LookupByName(name string) (metadata *ABFMetadata, exists bool)

	// LookupName looks up previously stored item identified by name 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