github.phpd.cn/cilium/cilium@v1.6.12/pkg/service/const.go (about) 1 // Copyright 2018 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 service 16 17 import ( 18 "github.com/cilium/cilium/common" 19 ) 20 21 const ( 22 // ServiceIDKeyPath is the base path where the IDs are stored in the kvstore. 23 ServiceIDKeyPath = common.OperationalPath + "/ServicesV2/IDs" 24 25 // LastFreeServiceIDKeyPath is the path where the Last free UUID is stored in the kvstore. 26 LastFreeServiceIDKeyPath = common.OperationalPath + "/ServicesV2/LastUUID" 27 28 // FirstFreeServiceID is the first ID for which the services should be assigned. 29 FirstFreeServiceID = uint32(1) 30 31 // MaxSetOfServiceID is maximum number of set of service IDs that can be stored 32 // in the kvstore or the local ID allocator. 33 MaxSetOfServiceID = uint32(0xFFFF) 34 35 // FirstFreeBackendID is the first ID for which the backend should be assigned. 36 FirstFreeBackendID = uint32(1) 37 38 // MaxSetOfBackendID is maximum number of set of backendIDs IDs that can be 39 // stored in the local ID allocator. 40 MaxSetOfBackendID = uint32(0xFFFF) 41 42 serviceKvstorePrefix = common.OperationalPath + "/ServicesV2/" 43 )