Documentation ¶
Index ¶
- Variables
- func ApplyConfigOverride(cfg *InitCfg) error
- func ConnectNodes(from, to IpfsNode, timeout string) error
- func GetAttrDescr(attr string) (string, error)
- func GetListOfAttr() []string
- func GetNumNodes() int
- func GetPeerID(ipfsdir string) (string, error)
- func IpfsDirN(n int) (string, error)
- func IpfsInit(cfg *InitCfg) error
- func IpfsKillAll(nds []IpfsNode) error
- func IpfsStart(nodes []IpfsNode, waitall bool, args []string) error
- func TestBedDir() (string, error)
- func WriteNodeSpecs(specs []*NodeSpec) error
- func YesNoPrompt(prompt string) bool
- type BW
- type DockerNode
- func (dn *DockerNode) APIAddr() (string, error)
- func (dn *DockerNode) GetAttr(name string) (string, error)
- func (dn *DockerNode) Kill() error
- func (dn *DockerNode) RunCmd(args ...string) (string, error)
- func (dn *DockerNode) SetAttr(name, val string) error
- func (dn *DockerNode) Shell() error
- func (dn *DockerNode) Start(args []string) error
- func (dn *DockerNode) String() string
- type InitCfg
- type IpfsNode
- type LocalNode
- func (n *LocalNode) APIAddr() (string, error)
- func (n *LocalNode) GetAttr(attr string) (string, error)
- func (n *LocalNode) GetConfig() (*config.Config, error)
- func (n *LocalNode) GetPeerID() string
- func (n *LocalNode) Init() error
- func (n *LocalNode) Kill() error
- func (n *LocalNode) RunCmd(args ...string) (string, error)
- func (n *LocalNode) SetAttr(name, val string) error
- func (n *LocalNode) Shell() error
- func (n *LocalNode) Start(args []string) error
- func (n *LocalNode) StderrReader() (io.ReadCloser, error)
- func (n *LocalNode) StdoutReader() (io.ReadCloser, error)
- func (n *LocalNode) String() string
- func (n *LocalNode) WriteConfig(c *config.Config) error
- type NodeSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
func ApplyConfigOverride ¶
func ConnectNodes ¶
func GetAttrDescr ¶
func GetListOfAttr ¶
func GetListOfAttr() []string
func GetNumNodes ¶
func GetNumNodes() int
GetNumNodes returns the number of testbed nodes configured in the testbed directory
func IpfsKillAll ¶
func TestBedDir ¶
func WriteNodeSpecs ¶
func YesNoPrompt ¶
Types ¶
type DockerNode ¶
type DockerNode struct { ImageName string ID string LocalNode // contains filtered or unexported fields }
DockerNode is an IPFS node in a docker container controlled by IPTB
func (*DockerNode) APIAddr ¶
func (dn *DockerNode) APIAddr() (string, error)
func (*DockerNode) Kill ¶
func (dn *DockerNode) Kill() error
func (*DockerNode) SetAttr ¶
func (dn *DockerNode) SetAttr(name, val string) error
func (*DockerNode) Shell ¶
func (dn *DockerNode) Shell() error
func (*DockerNode) Start ¶
func (dn *DockerNode) Start(args []string) error
func (*DockerNode) String ¶
func (dn *DockerNode) String() string
type IpfsNode ¶
type IpfsNode interface { Init() error Kill() error Start(args []string) error APIAddr() (string, error) GetPeerID() string RunCmd(args ...string) (string, error) Shell() error String() string GetAttr(string) (string, error) SetAttr(string, string) error GetConfig() (*config.Config, error) WriteConfig(*config.Config) error }
IpfsNode defines the interface iptb requires to work with an IPFS node
func NodesFromSpecs ¶
type LocalNode ¶
LocalNode is a machine-local IPFS node controlled by IPTB
func (*LocalNode) Shell ¶
Shell sets up environment variables for a new shell to more easily control the given daemon
func (*LocalNode) StderrReader ¶ added in v1.1.7
func (n *LocalNode) StderrReader() (io.ReadCloser, error)
func (*LocalNode) StdoutReader ¶ added in v1.1.7
func (n *LocalNode) StdoutReader() (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.