aclidx

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLMetadata

type ACLMetadata struct {
	Index uint32
	L2    bool
}

ACLMetadata represents metadata for ACL.

func (*ACLMetadata) GetIndex

func (m *ACLMetadata) GetIndex() uint32

GetIndex returns index of the ACL.

type ACLMetadataDto

type ACLMetadataDto struct {
	idxmap.NamedMappingEvent
	Metadata *ACLMetadata
}

ACLMetadataDto represents an item sent through watch channel in aclIndex.

type ACLMetadataIndex

type ACLMetadataIndex interface {
	// LookupIdx looks up previously stored item identified by index in mapping.
	LookupByName(name string) (metadata *ACLMetadata, exists bool)

	// LookupName looks up previously stored item identified by name in mapping.
	LookupByIndex(idx uint32) (name string, metadata *ACLMetadata, exists bool)

	// WatchAcls
	WatchAcls(subscriber string, channel chan<- ACLMetadataDto)
}

ACLMetadataIndex provides read-only access to mapping between ACL indices (used internally in VPP) and ACL names.

type ACLMetadataIndexRW

type ACLMetadataIndexRW interface {
	ACLMetadataIndex
	idxmap.NamedMappingRW
}

ACLMetadataIndexRW is mapping between ACL indices (used internally in VPP) and ACL names.

func NewACLIndex added in v1.8.1

func NewACLIndex(logger logging.Logger, title string) ACLMetadataIndexRW

NewACLIndex creates new instance of aclMetadataIndex.

Jump to

Keyboard shortcuts

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