Documentation
¶
Index ¶
- func Cmds() []*cobra.Command
- type Tool
- func (t *Tool) ExecCmd(_ *cobra.Command, mod string, cmd string, args []string, defaults []string)
- func (t *Tool) ExecCsInfo(_ *cobra.Command, args []string)
- func (t *Tool) ExecFaceList(_ *cobra.Command, args []string)
- func (t *Tool) ExecFibList(_ *cobra.Command, args []string)
- func (t *Tool) ExecRouteList(_ *cobra.Command, args []string)
- func (t *Tool) ExecStatusGeneral(_ *cobra.Command, args []string)
- func (t *Tool) ExecStrategyList(_ *cobra.Command, args []string)
- func (t *Tool) Prefix() enc.Name
- func (t *Tool) Start()
- func (t *Tool) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) ExecCmd ¶
Executes an NDN management command with specified module, command, and arguments, merging default values with user-provided key-value parameters and outputting the structured response.
func (*Tool) ExecCsInfo ¶
Fetches and prints content store (CS) status information, including capacity, admission/serve flags, and hit/miss statistics, from an NDN network using a status dataset query.
func (*Tool) ExecFaceList ¶
Fetches and displays detailed status information for all network faces, including identifiers, connection details, congestion metrics, MTU, packet counters, and persistence flags in a human-readable format.
func (*Tool) ExecFibList ¶
Fetches and displays the current Forwarding Information Base (FIB) entries from an NDN daemon, listing each entry's name along with next-hop face IDs and their associated costs.
func (*Tool) ExecRouteList ¶
Lists all routes in the Routing Information Base (RIB) of an NDN node, displaying each route's prefix, next hop, origin, cost, flags, and expiration time in a human-readable format.
func (*Tool) ExecStatusGeneral ¶
Fetches and displays general status information from an NFD (Named Data Forwarding Daemon) instance, including version, uptime, and counts of entries in data structures like the name tree, FIB, PIT, and statistics on Interest/Data/NACK traffic.
func (*Tool) ExecStrategyList ¶
Fetches and prints the list of configured strategy choices (prefix-to-strategy mappings) from the NDN network's status dataset.
func (*Tool) Prefix ¶
Constructs and returns an NDN Name representing the localhost NFD prefix by combining the localhost component and a generic "nfd" component.