Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConduitWatcher ¶
type ConduitWatcher struct { Ctx context.Context TrenchWatchers []TrenchWatcher TrenchName string ConfigurationManagerClient nspAPI.ConfigurationManagerClient // contains filtered or unexported fields }
func NewConduitWatcher ¶
func NewConduitWatcher(ctx context.Context, nspConn *grpc.ClientConn, trenchName string, trenchWatchers []TrenchWatcher) (*ConduitWatcher, error)
func (*ConduitWatcher) Start ¶
func (cw *ConduitWatcher) Start()
type Trench ¶
func New ¶
func New(ctx context.Context, prefix types.Prefix, store types.Storage, prefixLengths *types.PrefixLengths) (*Trench, error)
New is the constructor for the Trench struct The constructor registers the trench to the store if not already registered in. prefix - prefix of the Trench store - storage for the prefix and its childs (conduit) prefixLengths - prefix length used to allocate the childs (conduit)
func (*Trench) AddConduit ¶
AddConduit returns the conduit with the name in parameter and with as parent the current trench. If not existing, a new one will be created and returned.
func (*Trench) GetConduit ¶
GetNode returns the node with the name in parameter and with as parent the current conduit. If not existing, a nil value is returned.
Click to show internal directories.
Click to hide internal directories.