aclidx

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 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