Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteState ¶
DeleteState removes the state info for a given interface.
func Process ¶
func Process(ifStates *path_mgmt.IFStateInfos)
Process processes Interface State updates from the beacon service.
func UpdateIfNew ¶
UpdateIfNew atomically updates the state info for a given ifid, if the state has not been changed in the meantime. If there is no state info, a new one will be created and the new state will be inserted.
Types ¶
type Info ¶
type Info struct { IfID common.IFIDType Active bool SRevInfo *path_mgmt.SignedRevInfo RawSRev common.RawBytes }
Info stores state information, as well as the raw revocation info for a given interface.
func LoadState ¶
LoadState returns the state info for a given interface ID or nil. The bool result indicates whether the state was found in the map.
func LoadStates ¶ added in v0.5.0
func LoadStates() []*Info
LoadStates returns info for all interfaces.
Click to show internal directories.
Click to hide internal directories.