alias

package
v0.5.0-rc10-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasCmd = &cobra.Command{
	Use:   "alias",
	Short: "Manage aliases of IoTeX addresses",
	Args:  cobra.MaximumNArgs(3),
}

AliasCmd represents the alias command

View Source
var (
	ErrNoAliasFound = errors.New("no alias is found")
)

Errors

Functions

func Address

func Address(in string) (string, error)

Address returns the address corresponding to alias. if 'in' is an IoTeX address, returns 'in'

func Alias

func Alias(address string) (string, error)

Alias returns the alias corresponding to address

func GetAliasMap

func GetAliasMap() map[string]string

GetAliasMap gets the map from address to alias

Types

This section is empty.

Jump to

Keyboard shortcuts

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