iotex-core: github.com/iotexproject/iotex-core/ioctl Index | Files | Directories

package ioctl

import "github.com/iotexproject/iotex-core/ioctl"

Index

Package Files

client.go

type APIServiceConfig Uses

type APIServiceConfig struct {
    Endpoint string
    Insecure bool
}

APIServiceConfig defines a config of APIServiceClient

type Client Uses

type Client interface {
    // Start starts the client
    Start(context.Context) error
    // Stop stops the client
    Stop(context.Context) error
    // Config returns the config of the client
    Config() config.Config
    // APIServiceClient returns an API service client
    APIServiceClient(APIServiceConfig) (iotexapi.APIServiceClient, error)
    // SelectTranslation select a translation based on UILanguage
    SelectTranslation(map[config.Language]string) (string, config.Language)
    // AskToConfirm asks user to confirm from terminal, true to continue
    AskToConfirm() bool
    // ReadSecret reads password from terminal
    ReadSecret() (string, error)
    // Execute a bash command
    Execute(string) error
    // doing
    GetAddress(in string) (string, error)
    // doing
    Address(in string) (string, error)
    // doing
    NewKeyStore(string, int, int) *keystore.KeyStore
}

Client defines the interface of an ioctl client

func NewClient Uses

func NewClient() Client

NewClient creates a new ioctl client

Directories

PathSynopsis
cmd
cmd/account
cmd/action
cmd/alias
cmd/bc
cmd/node
cmd/update
cmd/version
config
flag
output
util
validator

Package ioctl imports 13 packages (graph) and is imported by 1 packages. Updated 2020-03-29. Refresh now. Tools for package owners.