nfdc

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmds added in v1.5.0

func Cmds() []*cobra.Command

(AI GENERATED DESCRIPTION): Creates and returns the Cobra command hierarchy for the NDN command‑line tool, wiring each subcommand (e.g., status, face‑create, route‑add) to the appropriate Tool execution methods.

Types

type Tool added in v1.4.3

type Tool struct {
	// contains filtered or unexported fields
}

func (*Tool) ExecCmd added in v1.4.3

func (t *Tool) ExecCmd(_ *cobra.Command, mod string, cmd string, args []string, defaults []string)

(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

func (t *Tool) ExecCsInfo(_ *cobra.Command, args []string)

(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

func (t *Tool) ExecFaceList(_ *cobra.Command, args []string)

(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

func (t *Tool) ExecFibList(_ *cobra.Command, args []string)

(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

func (t *Tool) ExecRouteList(_ *cobra.Command, args []string)

(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

func (t *Tool) ExecStatusGeneral(_ *cobra.Command, args []string)

(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

func (t *Tool) ExecStrategyList(_ *cobra.Command, args []string)

(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

func (t *Tool) Prefix() enc.Name

(AI GENERATED DESCRIPTION): Returns the tool’s default name prefix, which is the NDN name “/localhost/nfd”.

func (*Tool) Start added in v1.4.3

func (t *Tool) Start()

(AI GENERATED DESCRIPTION): Initializes the tool's engine with a new BasicEngine using a default face if not already set, then starts the engine, exiting the program on startup failure.

func (*Tool) Stop added in v1.4.3

func (t *Tool) Stop()

(AI GENERATED DESCRIPTION): Stops the tool by invoking its underlying engine’s `Stop` method, terminating network activity.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL