Documentation ¶
Index ¶
- Variables
- func DaemonContext(cctx *cli.Context) context.Context
- func EncodedString(sv *paych.SignedVoucher) (string, error)
- func GetAPI(ctx *cli.Context) (api.Common, jsonrpc.ClientCloser, error)
- func GetFullNodeAPI(ctx *cli.Context) (api.FullNode, jsonrpc.ClientCloser, error)
- func GetMultisigPending(ctx context.Context, lapi api.FullNode, hroot cid.Cid) (map[int64]*samsig.Transaction, error)
- func GetRawAPI(ctx *cli.Context, t repo.RepoType) (string, http.Header, error)
- func GetStorageMinerAPI(ctx *cli.Context) (api.StorageMiner, jsonrpc.ClientCloser, error)
- func LoadTipSet(ctx context.Context, cctx *cli.Context, api api.FullNode) (*types.TipSet, error)
- func NewCliError(s string) error
- func ReqContext(cctx *cli.Context) context.Context
- func SyncWait(ctx context.Context, napi api.FullNode) error
- type APIInfo
- type ApiConnector
- type ErrCmdFailed
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []*cli.Command{
withCategory("basic", sendCmd),
withCategory("basic", walletCmd),
withCategory("basic", clientCmd),
withCategory("basic", multisigCmd),
withCategory("basic", paychCmd),
withCategory("developer", authCmd),
withCategory("developer", mpoolCmd),
withCategory("developer", stateCmd),
withCategory("developer", chainCmd),
withCategory("developer", logCmd),
withCategory("developer", waitApiCmd),
withCategory("developer", fetchParamCmd),
withCategory("network", netCmd),
withCategory("network", syncCmd),
versionCmd,
}
View Source
var CommonCommands = []*cli.Command{
netCmd,
authCmd,
logCmd,
waitApiCmd,
fetchParamCmd,
versionCmd,
}
Functions ¶
func DaemonContext ¶
func EncodedString ¶ added in v0.3.0
func EncodedString(sv *paych.SignedVoucher) (string, error)
func GetFullNodeAPI ¶
func GetFullNodeAPI(ctx *cli.Context) (api.FullNode, jsonrpc.ClientCloser, error)
func GetMultisigPending ¶ added in v0.3.0
func GetStorageMinerAPI ¶
func GetStorageMinerAPI(ctx *cli.Context) (api.StorageMiner, jsonrpc.ClientCloser, error)
func LoadTipSet ¶ added in v0.3.0
func NewCliError ¶ added in v0.2.10
func ReqContext ¶
ReqContext returns context for cli execution. Calling it for the first time installs SIGTERM handler that will close returned context. Not safe for concurrent execution.
Types ¶
type APIInfo ¶
type APIInfo struct { Addr multiaddr.Multiaddr Token []byte }
func (APIInfo) AuthHeader ¶
type ErrCmdFailed ¶ added in v0.2.10
type ErrCmdFailed struct {
// contains filtered or unexported fields
}
func (*ErrCmdFailed) Error ¶ added in v0.2.10
func (e *ErrCmdFailed) Error() string
Click to show internal directories.
Click to hide internal directories.