marconi_net

package
v0.0.0-...-a7e7b69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const NAME = "net"

Name of Mode

View Source
const NETWORK_INFO_FORMAT = "%-24s %48s\n"

Variables

View Source
var MNET_PEER_SUGGESTIONS = []prompt.Suggest{
	{Text: marconi_net_commands.ADD_PEER, Description: "Add peer to a network"},
	{Text: marconi_net_commands.REMOVE_PEER, Description: "Remove peer from a network"},
	{Text: marconi_net_commands.ADD_PEER_RELATION, Description: "Add peer relation"},
	{Text: marconi_net_commands.REMOVE_PEER_RELATION, Description: "Remove peer relationship"},
	{Text: marconi_net_commands.GET_PEER_RELATIONS, Description: "Get node relationships"},
	{Text: marconi_net_commands.GET_PEER_INFO, Description: "Get node info"},
}

Mode suggestions

View Source
var MNET_SUGGESTIONS = []prompt.Suggest{
	{Text: marconi_net_commands.PEER, Description: "Peer related commands"},
	{Text: marconi_net_commands.UTIL, Description: "Utility commands"},
	{Text: marconi_net_commands.TRAFFIC_CONTROL, Description: "Traffic control commands"},
	{Text: marconi_net_commands.USE, Description: "Set network to use with other commands"},
	{Text: marconi_net_commands.CREATE_NETWORK, Description: "Create new network"},
	{Text: marconi_net_commands.DELETE_NETWORK, Description: "Delete existing network"},
	{Text: marconi_net_commands.JOIN_NETWORK, Description: "Join an existing network"},
	{Text: marconi_net_commands.GET_NETWORK_INFO, Description: "Get network info"},
	{Text: modes.RETURN_TO_ROOT, Description: "Return to home menu"},
	{Text: modes.EXIT_CMD, Description: "Exit mcli"},
}

Mode suggestions

View Source
var MNET_TC_SUGGESTIONS = []prompt.Suggest{
	{Text: marconi_net_commands.INFO, Description: "Show the qdisc attached to this network interface"},
	{Text: marconi_net_commands.SET_BANDWIDTH, Description: "Set bandwidth control"},
	{Text: marconi_net_commands.SET_CORRUPT, Description: "Set the corrupt rate of packets"},
	{Text: marconi_net_commands.SET_DELAY, Description: "Set the delay of packets"},
	{Text: marconi_net_commands.SET_DUPLICATE, Description: "Set the duplicate rate of packets"},
	{Text: marconi_net_commands.SET_LOSS, Description: "Set the loss rate of packets"},
	{Text: marconi_net_commands.SET_REORDER, Description: "Set the reorder rate of packets"},
	{Text: marconi_net_commands.RESET, Description: "Reset the qdisc for this interface"},
}

Mode suggestions

View Source
var MNET_UTIL_SUGGESTIONS = []prompt.Suggest{
	{Text: marconi_net_commands.GENERATE_32BITKEY, Description: "Generate a 32 bit key"},
	{Text: marconi_net_commands.GET_MPIPE_PORT, Description: "Get the shared MPipe port"},
	{Text: marconi_net_commands.REGISTER, Description: "Register a nodeID"},
	{Text: marconi_net_commands.START_NETFLOW, Description: "Start netflow monitoring"},
}

Mode suggestions

Functions

This section is empty.

Types

type MarconiNetMode

type MarconiNetMode struct {
	modes.BaseMode
	// contains filtered or unexported fields
}

Menu/Mode for Marconi Net related operations

func NewMarconiNetMode

func NewMarconiNetMode(c *context.Context) *MarconiNetMode

Create a new Marconi Net cmd struct, use this to create a MarconiNetMode otherwise suggestion and handlers wont be properly initialized

func (*MarconiNetMode) CliPrefix

func (mnm *MarconiNetMode) CliPrefix() (string, bool)

func (*MarconiNetMode) HandleCommand

func (mnm *MarconiNetMode) HandleCommand(args []string)

func (*MarconiNetMode) Name

func (mnm *MarconiNetMode) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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