dvc

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: 12 Imported by: 1

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): Builds and returns the Cobra command set for querying router status, creating a new active neighbor link, and destroying an existing neighbor link.

Types

type Tool added in v1.4.3

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

func (*Tool) DvStatus added in v1.4.3

func (t *Tool) DvStatus() (*spec_dv.Status, error)

(AI GENERATED DESCRIPTION): Queries the local Dv service status by expressing a fresh interest on the name `localhost/nlsr/status`, waits for the returned Data packet, parses its content into a `spec_dv.Status` object, and returns that status.

func (*Tool) RunDvLinkCreate added in v1.4.3

func (t *Tool) RunDvLinkCreate(cmd *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Registers a permanent NDN route for the supplied face, using a prefix that combines the router’s localhop network name with the DV/ADS/ACT keyword components.

func (*Tool) RunDvLinkDestroy added in v1.4.3

func (t *Tool) RunDvLinkDestroy(cmd *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Destroys an NFD face by executing the `faces destroy` command with the specified face identifier.

func (*Tool) RunDvStatus added in v1.4.3

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

(AI GENERATED DESCRIPTION): Retrieves the DV router status and prints general status metrics to stdout.

func (*Tool) Start added in v1.4.3

func (t *Tool) Start()

(AI GENERATED DESCRIPTION): Initializes the Tool’s engine with a default face and starts it, terminating the program if the engine fails to start.

func (*Tool) Stop added in v1.4.3

func (t *Tool) Stop()

(AI GENERATED DESCRIPTION): Stops the Tool’s engine, terminating its operation.

Jump to

Keyboard shortcuts

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