Documentation ¶
Index ¶
Constants ¶
View Source
const ( IpcNamespace = "remoterpc" HttpRpcNamespace = "user" HttpRpcUrl = "httpRpcUrl" RpcModeFlag = "rpcMode" RpcModeHttpRpc = "httpRpc" RpcModeIpc = "ipc" IpcEndpoint = "ipcEndpoint" IpfsPortFlag = "port" HttpRpcDefaultUrl = "http://127.0.0.1:9301" HOME string = "home" PasswordFlag = "password" )
View Source
const ( CMD_ADD = "add" CMD_GET = "get" CMD_LIST = "ls" )
Variables ¶
View Source
var ( WalletPrivateKey types.AccPrivKey WalletPublicKey types.AccPubKey WalletAddress string WalletPassword string )
View Source
var RootCmd = &cmds.Command{ Subcommands: map[string]*cmds.Command{ CMD_ADD: { Arguments: []cmds.Argument{ cmds.StringArg("fileName", true, true, "fileName"), }, Run: add, }, CMD_GET: { Arguments: []cmds.Argument{ cmds.StringArg("sdmPath", true, true, "sdmPath"), }, Run: get, }, CMD_LIST: { Options: []cmds.Option{ cmds.Uint64Option("page"), }, Run: list, }, }, }
Define the root of the commands
Functions ¶
func Ipfsmigrate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.