ipfs

package module
v0.0.0-...-a3b3934 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: MIT Imports: 15 Imported by: 0

README

IPTB Plugins

This project contains the IPFS plugins for IPTB. Due to the way IPFS manages dependencies, these plugins cannot be easily loaded into a generic build of IPTB, and must be use with the IPTB build in this project.

Example
$ iptb auto -type localipfs -count 5
<output removed>

$ iptb start

$ iptb shell 0
$ echo $IPFS_PATH
/home/iptb/testbed/testbeds/default/0

$ echo 'hey!' | ipfs add -q
QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF

$ exit

$ iptb connect 0 4

$ iptb shell 4
$ ipfs cat QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF
hey!
Usage
NAME:
   iptb - iptb is a tool for managing test clusters of libp2p nodes

USAGE:
   iptb [global options] command [command options] [arguments...]

VERSION:
   2.0.0

COMMANDS:
     auto     create default testbed and initialize
     testbed  manage testbeds
     help, h  Shows a list of commands or help for one command
   ATTRIBUTES:
     attr  get, set, list attributes
   CORE:
     init     initialize specified nodes (or all)
     start    start specified nodes (or all)
     stop     stop specified nodes (or all)
     restart  restart specified nodes (or all)
     run      run command on specified nodes (or all)
     connect  connect sets of nodes together (or all)
     shell    starts a shell within the context of node
   METRICS:
     logs    show logs from specified nodes (or all)
     events  stream events from specified nodes (or all)
     metric  get metric from node

GLOBAL OPTIONS:
   --testbed value  Name of testbed to use under IPTB_ROOT (default: "default") [$IPTB_TESTBED]
   --quiet          Suppresses extra output from iptb
   --help, -h       show help
   --version, -v    print the version
Install
$ go get -d github.com/ipfs/iptb-plugins
$ cd $GOPATH/src/github.com/ipfs/iptb-plugins
$ make install
License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIAddrFromRepo

func GetAPIAddrFromRepo(dir string) (string, error)

func GetAttr

func GetAttr(l testbedi.Core, attr string) (string, error)

func GetAttrDesc

func GetAttrDesc(attr string) (string, error)

func GetAttrList

func GetAttrList() []string

func GetMetric

func GetMetric(l testbedi.Core, metric string) (string, error)

func GetMetricDesc

func GetMetricDesc(metric string) (string, error)

func GetMetricList

func GetMetricList() []string

func GetPeerID

func GetPeerID(l testbedi.Config) (*cid.Cid, error)

func InitIpfs

func InitIpfs(l testbedi.Core) error

func ReadLogs

func ReadLogs(l testbedi.Libp2p) (io.ReadCloser, error)

func SwarmAddrs

func SwarmAddrs(l testbedi.Core) ([]string, error)

func WaitOnAPI

func WaitOnAPI(l testbedi.Libp2p) error

Types

type BW

type BW struct {
	TotalIn  int
	TotalOut int
}

func GetBW

func GetBW(l testbedi.Libp2p) (*BW, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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