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 ¶ added in v1.4.3
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) ExecCmd ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Executes a specified management command on the engine, applying default and user‑supplied arguments (after preprocessing), invoking the command, and printing the resulting control response.
func (*Tool) ExecCsInfo ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Retrieves the CS (Content Store) status dataset from the controller and prints its capacity, admission/serve flags, entry count, hits, and misses.
func (*Tool) ExecFaceList ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Prints a formatted list of all faces—including their IDs, URIs, congestion settings, MTU, counters, and flags—by fetching the `faces/list` status dataset and parsing it.
func (*Tool) ExecFibList ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): ExecFibList retrieves the FIB status dataset, parses it, and prints each FIB entry along with its next‑hop face IDs and costs.
func (*Tool) ExecRouteList ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): ExecRouteList fetches the router’s RIB status and prints each route’s prefix, next‑hop face, origin, cost, flags, and expiration time to standard output.
func (*Tool) ExecStatusGeneral ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Retrieves the NFD general status dataset, parses the returned data, and prints a formatted summary of the node’s runtime statistics to standard output.
func (*Tool) ExecStrategyList ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Lists the current routing strategies by retrieving the “strategy‑choice/list” status dataset from the local NFD and printing each prefix together with its chosen strategy.
func (*Tool) Prefix ¶ added in v1.4.3
(AI GENERATED DESCRIPTION): Returns the tool’s default name prefix, which is the NDN name “/localhost/nfd”.