{"modulePath":"github.com/EMnify/vpp-agent","version":"v1.4.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ipsecidx\n\n## Types\n\n```go\ntype SPDEntry struct {\n\tSPD   *ipsec.SecurityPolicyDatabases_SPD\n\tSpdID uint32\n}\n```\nSPDEntry is used for matched SPD entries\n\n```go\ntype SPDIndex interface {\n\t// GetMapping returns internal read-only mapping with metadata of ipsec.SecurityPolicyDatabases_SPD type.\n\tGetMapping() idxvpp.NameToIdxRW\n\n\t// LookupIdx looks up previously stored item identified by index in mapping.\n\tLookupIdx(name string) (idx uint32, metadata *ipsec.SecurityPolicyDatabases_SPD, exists bool)\n\n\t// LookupName looks up previously stored item identified by name in mapping.\n\tLookupName(idx uint32) (name string, metadata *ipsec.SecurityPolicyDatabases_SPD, exists bool)\n\n\t// LookupByInterface returns structure with SPD interface assignment data.\n\tLookupByInterface(ifName string) []SPDEntry\n\n\t// LookupBySA returns structure with matched SPD entries.\n\tLookupBySA(saName string) []SPDEntry\n}\n```\nSPDIndex provides read-only access to mapping between SPD data and SPD names\n\n```go\ntype SPDIndexRW interface {\n\tSPDIndex\n\n\t// RegisterName adds new item into name-to-index mapping.\n\tRegisterName(name string, idx uint32, ifMeta *ipsec.SecurityPolicyDatabases_SPD)\n\n\t// UnregisterName removes an item identified by name from mapping\n\tUnregisterName(name string) (idx uint32, metadata *ipsec.SecurityPolicyDatabases_SPD, exists bool)\n}\n```\nRouteIndexRW is mapping between SPD data (metadata) and SPD entry names.\n\n```go\nfunc NewSPDIndex(mapping idxvpp.NameToIdxRW) SPDIndexRW\n```\nNewSPDIndex creates new instance of spdIndex.\n\n","path":"github.com/EMnify/vpp-agent/plugins/defaultplugins/ipsecplugin/ipsecidx","name":"ipsecidx","synopsis":"","isRedistributable":true}
