credentials

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 = "credential"
)

Variables

View Source
var METH_ACCOUNT_SUGGESTIONS = []prompt.Suggest{
	{Text: credential_commands.CREATE_ACCOUNT, Description: "Create account"},
	{Text: credential_commands.UNLOCK_ACCOUNT, Description: "Unlock account"},
	{Text: credential_commands.LIST_ACCOUNTS, Description: "List accounts"},
	{Text: credential_commands.SEND_TRANSACTION, Description: "Send a transaction"},
	{Text: credential_commands.GET_BALANCE, Description: "Get balance for an account"},
	{Text: credential_commands.GET_TRANSACTION_RECEIPT, Description: "Get receipt for a transaction"},
	{Text: credential_commands.EXPORT_GMRC_KEY, Description: "Export Go Marconi Keystore associated with an account"},
	{Text: credential_commands.USE_ACCOUNT, Description: "Use account address"},
}

Mode suggestions

View Source
var METH_KEY_SUGGESTIONS = []prompt.Suggest{
	{Text: credential_commands.GENERATE_MP_KEY, Description: "Generate nodekey"},
	{Text: credential_commands.USE_MPKEY, Description: "Set nodekey to use with other commands"},
	{Text: credential_commands.EXPORT_MP_KEY, Description: "Export nodekey"},
	{Text: credential_commands.LIST_MPKEY_HASHES, Description: "List nodekeys"},
}

Mode suggestions

View Source
var METH_SUGGESTIONS = []prompt.Suggest{
	{Text: credential_commands.ACCOUNT, Description: "Account related commands"},
	{Text: credential_commands.KEY, Description: "Key related commands"},
	{Text: modes.RETURN_TO_ROOT, Description: "Return to home menu"},
	{Text: modes.EXIT_CMD, Description: "Exit mcli"},
}

Mode suggestions

Functions

This section is empty.

Types

type CredsMode

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

Menu/Mode for m-eth related operations

func NewCredsMode

func NewCredsMode(c *context.Context) *CredsMode

Create a new m-eth cmd struct, use this to create a CredsMode otherwise suggestion and handlers wont be properly initialized

func (*CredsMode) CliPrefix

func (mm *CredsMode) CliPrefix() (string, bool)

func (*CredsMode) HandleCommand

func (mm *CredsMode) HandleCommand(args []string)

func (*CredsMode) Name

func (mm *CredsMode) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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