Documentation ¶
Index ¶
- func AddFlagHost(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagKey(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagKeyOptional(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagKeyType(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagNode(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagNonce(cmd *cobra.Command, flags *pflag.FlagSet)
- func AddFlagWait(cmd *cobra.Command, flags *pflag.FlagSet)
- func SetupBaseCommand(cmd *cobra.Command)
- func WithSession(fn Runner) cmdRunner
- type Runner
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlagKeyOptional ¶ added in v0.3.0
func SetupBaseCommand ¶
func WithSession ¶
func WithSession(fn Runner) cmdRunner
Types ¶
type Runner ¶
func RequireHost ¶ added in v0.2.4
func RequireKey ¶
func RequireKeyManager ¶
func RequireNode ¶
func RequireRootDir ¶
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.CryptoAlgo, 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) }
Click to show internal directories.
Click to hide internal directories.