Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLMetadata ¶
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 ¶
func NewACLIndex(logger logging.Logger, title string) ACLMetadataIndexRW
NewACLIndex creates new instance of aclMetadataIndex.
Click to show internal directories.
Click to hide internal directories.