github.com/looshlee/beatles@v0.0.0-20220727174639-742810ab631c/pkg/maps/eppolicymap/doc.go (about) 1 // Copyright 2018-2019 Authors of Cilium 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Package eppolicymap represents the map from an endpoint ID to its 16 // policy map. This map is of type BPF_MAP_TYPES_HASH_OF_MAPS where 17 // as noted above the key is the endpoint ID. It is used to lookup 18 // the policy from the socket context where unlike in the L2/L3 context, 19 // where the program has a direct lookup of the policy because each 20 // program is attached to an endpoint, socket programs run on all sockets 21 // regardless of endpoint. 22 // +groupName=maps 23 package eppolicymap