session

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeybaseName = "akash"

KeybaseName is the default name of the Keybase

Functions

func AddFlagHost added in v0.2.4

func AddFlagHost(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagKey

func AddFlagKey(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagKeyOptional added in v0.3.0

func AddFlagKeyOptional(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagKeyType

func AddFlagKeyType(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagNode

func AddFlagNode(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagNonce

func AddFlagNonce(cmd *cobra.Command, flags *pflag.FlagSet)

func AddFlagWait

func AddFlagWait(cmd *cobra.Command, flags *pflag.FlagSet)

func SetupBaseCommand

func SetupBaseCommand(cmd *cobra.Command)

func WithSession

func WithSession(fn Runner) cmdRunner

Types

type Runner

type Runner func(sess Session, cmd *cobra.Command, args []string) error

func RequireHost added in v0.2.4

func RequireHost(fn Runner) Runner

func RequireKey

func RequireKey(fn Runner) Runner

func RequireKeyManager

func RequireKeyManager(fn Runner) Runner

func RequireNode

func RequireNode(fn Runner) Runner

func RequireRootDir

func RequireRootDir(fn Runner) Runner

func WithPrinter added in v0.4.0

func WithPrinter(fn Runner) Runner

type Session

type Session interface {
	RootDir() string
	KeyManager() (keys.Keybase, error)
	Node() string
	Client() *tmclient.HTTP
	TxClient() (txutil.Client, error)
	QueryClient() query.Client
	KeyName() string
	KeyType() (keys.SigningAlgo, error)
	Key() (keys.Info, error)
	Nonce() (uint64, error)
	Log() log.Logger
	Signer() (txutil.Signer, keys.Info, error)
	Ctx() context.Context
	NoWait() bool
	Host() string
	Password() (string, error)
	Printer() uiutil.Printer
}

Jump to

Keyboard shortcuts

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