cmd

package
v0.0.0-...-6e57485 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataProviderCMD = cli.Command{
	Name:  "data_provider",
	Usage: "A provider of data for MPC",
	Subcommands: cli.Commands{
		cli.Command{
			Name:  "start",
			Usage: "Starts data a data provider",
			Flags: dataProviderFlags,
			Action: func(ctx *cli.Context) error {
				data_provider.RunDatasetProvider(ctx.String("name"),
					ctx.String("dataLoc"),
					ctx.String("logLevel"),
					ctx.String("logFile"),
					ctx.String("manAddr"),
					ctx.String("certLocation"),
					strings.Split(ctx.String("shareWith"), ","),
				)
				return nil
			},
		},
	},
}
View Source
var ManagerCmd = cli.Command{
	Name:  "manager",
	Usage: "A manager of MPC nodes",
	Subcommands: cli.Commands{
		cli.Command{
			Name:  "start",
			Usage: "Starts manager of MPC nodes",
			Flags: mangerFlags,
			Action: func(ctx *cli.Context) error {
				manager.RunManager(ctx.Int("guiPort"), ctx.Int("managerPort"), ctx.String("assets"), ctx.String("logLevel"),
					ctx.String("logFile"), ctx.String("certLocation"))
				return nil
			},
		},
	},
}
View Source
var MpcNodeCmd = cli.Command{
	Name:  "mpc_node",
	Usage: "An MPC node listening for requests",
	Subcommands: cli.Commands{
		cli.Command{
			Name:  "start",
			Usage: "Starts server",
			Flags: mpcNodeFlags,
			Action: func(ctx *cli.Context) error {
				mpc_node.RunNode(ctx.String("name"),
					ctx.String("nodeAddr"),
					ctx.Int("scalePort"),
					ctx.String("certLocation"),
					ctx.String("sm"),
					ctx.String("logLevel"),
					ctx.String("logFile"),
					ctx.String("manAddr"),
					ctx.String("description"))
				return nil
			},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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