Documentation
¶
Index ¶
- Constants
- func GetAttrDesc(attr string) (string, error)
- func GetAttrList() []string
- func NewNode(dir string, attrs map[string]string) (testbedi.Core, error)
- type LocalP2pd
- func (l *LocalP2pd) APIAddr() (string, error)
- func (l *LocalP2pd) Attr(attr string) (string, error)
- func (l *LocalP2pd) Connect(ctx context.Context, n testbedi.Core) error
- func (l *LocalP2pd) Dir() string
- func (l *LocalP2pd) GetAttrDesc(attr string) (string, error)
- func (l *LocalP2pd) GetAttrList() []string
- func (l *LocalP2pd) Init(ctx context.Context, args ...string) (testbedi.Output, error)
- func (l *LocalP2pd) PeerID() (string, error)
- func (l *LocalP2pd) RunCmd(ctx context.Context, stdin io.Reader, args ...string) (testbedi.Output, error)
- func (l *LocalP2pd) SetAttr(string, string) error
- func (l *LocalP2pd) Shell(ctx context.Context, ns []testbedi.Core) error
- func (l *LocalP2pd) Start(ctx context.Context, wait bool, args ...string) (testbedi.Output, error)
- func (l *LocalP2pd) Stop(ctx context.Context) error
- func (l *LocalP2pd) String() string
- func (l *LocalP2pd) SwarmAddrs() ([]string, error)
- func (l *LocalP2pd) Type() string
Constants ¶
View Source
const (
// PluginName is the libp2p daemon IPTB plugin name.
PluginName = "localp2pd"
)
Variables ¶
This section is empty.
Functions ¶
func GetAttrDesc ¶
func GetAttrList ¶
func GetAttrList() []string
Types ¶
type LocalP2pd ¶
type LocalP2pd struct {
// contains filtered or unexported fields
}
LocalP2pd wraps behaviors of the libp2p daemon.
func (*LocalP2pd) GetAttrList ¶
func (*LocalP2pd) RunCmd ¶
func (l *LocalP2pd) RunCmd(ctx context.Context, stdin io.Reader, args ...string) (testbedi.Output, error)
RunCmd is a no-op for the libp2p daemon
func (*LocalP2pd) SwarmAddrs ¶
SwarmAddrs returns the swarm addrs for the node
Click to show internal directories.
Click to hide internal directories.