Versions in this module Expand all Collapse all v1 v1.4.1 Oct 21, 2024 v1.4.0 Mar 2, 2019 Changes in this version + type Attribute interface + Attr func(attr string) (string, error) + GetAttrDesc func(attr string) (string, error) + GetAttrList func() []string + SetAttr func(attr string, val string) error + type Config interface + Config func() (interface{}, error) + WriteConfig func(interface{}) error + type Core interface + Connect func(ctx context.Context, n Core) error + Dir func() string + Init func(ctx context.Context, args ...string) (Output, error) + RunCmd func(ctx context.Context, stdin io.Reader, args ...string) (Output, error) + Shell func(ctx context.Context, ns []Core) error + Start func(ctx context.Context, wait bool, args ...string) (Output, error) + Stop func(ctx context.Context) error + String func() string + Type func() string + type GetAttrDescFunc func(attr string) (string, error) + type GetAttrListFunc func() []string + type Libp2p interface + APIAddr func() (string, error) + PeerID func() (string, error) + SwarmAddrs func() ([]string, error) + type Metric interface + Events func() (io.ReadCloser, error) + GetMetricDesc func(key string) (string, error) + GetMetricList func() []string + Heartbeat func() (map[string]string, error) + Metric func(key string) (string, error) + StderrReader func() (io.ReadCloser, error) + StdoutReader func() (io.ReadCloser, error) + type NewNodeFunc func(dir string, attrs map[string]string) (Core, error) + type Output interface + Args func() []string + Error func() error + ExitCode func() int + Stderr func() io.ReadCloser + Stdout func() io.ReadCloser