commands

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagRole    = "role"
	FlagMembers = "members"
	FlagMinSigs = "min-sigs"
)

nolint

View Source
const (
	FlagAssumeRole = "assume-role"
)

nolint

Variables

View Source
var CreateRoleTxCmd = &cobra.Command{
	Use:   "create-role",
	Short: "Create a new role",
	RunE:  commands.RequireInit(createRoleTxCmd),
}

CreateRoleTxCmd is CLI command to create a new role

View Source
var RoleQueryCmd = &cobra.Command{
	Use:   "role [name]",
	Short: "Get details of a role, with proof",
	RunE:  commands.RequireInit(roleQueryCmd),
}

RoleQueryCmd - command to query a role

Functions

This section is empty.

Types

type RoleWrapper

type RoleWrapper struct{}

RoleWrapper wraps a tx with 0, 1, or more roles

func (RoleWrapper) Register

func (RoleWrapper) Register(fs *pflag.FlagSet)

Register adds the sequence flags to the cli

func (RoleWrapper) Wrap

func (RoleWrapper) Wrap(tx sdk.Tx) (sdk.Tx, error)

Wrap grabs the sequence number from the flag and wraps the tx with this nonce. Grabs the permission from the signer, as we still only support single sig on the cli

Jump to

Keyboard shortcuts

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