Documentation ¶
Index ¶
- Variables
- func GetAttrDesc(attr string) (string, error)
- func GetAttrList() []string
- func GetMetricDesc(attr string) (string, error)
- func GetMetricList() []string
- func NewNode(dir string, attrs map[string]string) (testbedi.Core, error)
- type LocalIpfs
- func (l *LocalIpfs) APIAddr() (string, error)
- func (l *LocalIpfs) Attr(attr string) (string, error)
- func (l *LocalIpfs) Config() (interface{}, error)
- func (l *LocalIpfs) Connect(ctx context.Context, tbn testbedi.Core) error
- func (l *LocalIpfs) Deployment() string
- func (l *LocalIpfs) Dir() string
- func (l *LocalIpfs) Events() (io.ReadCloser, error)
- func (l *LocalIpfs) GetAttrDesc(attr string) (string, error)
- func (l *LocalIpfs) GetAttrList() []string
- func (l *LocalIpfs) GetMetricDesc(attr string) (string, error)
- func (l *LocalIpfs) GetMetricList() []string
- func (l *LocalIpfs) Heartbeat() (map[string]string, error)
- func (l *LocalIpfs) Init(ctx context.Context, agrs ...string) (testbedi.Output, error)
- func (l *LocalIpfs) Logs() (io.ReadCloser, error)
- func (l *LocalIpfs) Metric(metric string) (string, error)
- func (l *LocalIpfs) PeerID() (string, error)
- func (l *LocalIpfs) RunCmd(ctx context.Context, stdin io.Reader, args ...string) (testbedi.Output, error)
- func (l *LocalIpfs) SetAttr(string, string) error
- func (l *LocalIpfs) Shell(ctx context.Context, nodes []testbedi.Core) error
- func (l *LocalIpfs) Start(ctx context.Context, wait bool, args ...string) (testbedi.Output, error)
- func (l *LocalIpfs) StderrReader() (io.ReadCloser, error)
- func (l *LocalIpfs) StdoutReader() (io.ReadCloser, error)
- func (l *LocalIpfs) Stop(ctx context.Context) error
- func (l *LocalIpfs) String() string
- func (l *LocalIpfs) SwarmAddrs() ([]string, error)
- func (l *LocalIpfs) Type() string
- func (l *LocalIpfs) WriteConfig(cfg interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginName = "localipfs"
Functions ¶
func GetAttrDesc ¶
func GetAttrList ¶
func GetAttrList() []string
func GetMetricDesc ¶
func GetMetricList ¶
func GetMetricList() []string
func NewNode ¶
NewNode creates a localipfs iptb core node that runs ipfs on the local system by using random ports for both the api and the swarm. Attributes - binary: binary to use for Init, Start (defaults to ipfs in path) - apiaddr: multiaddr use for the api (defaults to /ip4/127.0.0.1/tcp/0) - swarmaddr: multiaddr used for swarm (defaults to /ip4/127.0.0.1/tcp/0) - mdns: if present, enables mdns (off by default)
Types ¶
type LocalIpfs ¶
type LocalIpfs struct {
// contains filtered or unexported fields
}
func (*LocalIpfs) Deployment ¶
func (*LocalIpfs) GetAttrList ¶
func (*LocalIpfs) GetMetricList ¶
func (*LocalIpfs) StderrReader ¶
func (l *LocalIpfs) StderrReader() (io.ReadCloser, error)
func (*LocalIpfs) StdoutReader ¶
func (l *LocalIpfs) StdoutReader() (io.ReadCloser, error)
func (*LocalIpfs) SwarmAddrs ¶
func (*LocalIpfs) WriteConfig ¶
Click to show internal directories.
Click to hide internal directories.