ipfs

package
v0.0.0-...-a8ad8fa Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

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 fwcryptotypes.PrivKey
	WalletPublicKey  fwcryptotypes.PubKey
	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 Ipfsapi

func Ipfsapi(cmd *cobra.Command, args []string)

func IpfsapiPreRunE

func IpfsapiPreRunE(cmd *cobra.Command, args []string) error

func Ipfsmigrate

func Ipfsmigrate(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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