Documentation
¶
Overview ¶
Package identitymanager tracks which global identities are being used by the currently running cilium-agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GlobalIdentityManager is a singleton instance of an IdentityManager, used // for easy updating / tracking lifecycles of identities on the local node // without having to pass around a specific instance of an IdentityManager // throughout Cilium. GlobalIdentityManager = NewIdentityManager() )
Functions ¶
func GetIdentityModels ¶
func GetIdentityModels() []*models.IdentityEndpoints
GetIdentityModels returns the API model of all identities in the GlobalIdentityManager.
func RemoveOldAddNew ¶
RemoveOldAddNew removes old from and inserts new into the GlobalIdentityManager.
Types ¶
type IdentitiesModel ¶
type IdentitiesModel []*models.IdentityEndpoints
IdentitiesModel is a wrapper so that we can implement the sort.Interface to sort the slice by ID
func (IdentitiesModel) Less ¶
func (s IdentitiesModel) Less(i, j int) bool
Less returns true if the element in index `i` is lower than the element in index `j`