Documentation
¶
Index ¶
- func ApplyConfigOverride(cfg *InitCfg) error
- func ConnectNodes(from, to IpfsNode) 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) String() string
- func (n *LocalNode) WriteConfig(c *config.Config) error
- type NodeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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
}
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
}
func NodesFromSpecs ¶
Click to show internal directories.
Click to hide internal directories.