pluginlocalipfs

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 18 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "localipfs"

Functions

func GetAttrDesc

func GetAttrDesc(attr string) (string, error)

func GetAttrList

func GetAttrList() []string

func GetMetricDesc

func GetMetricDesc(attr string) (string, error)

func GetMetricList

func GetMetricList() []string

func NewNode

func NewNode(dir string, attrs map[string]string) (testbedi.Core, error)

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) APIAddr

func (l *LocalIpfs) APIAddr() (string, error)

func (*LocalIpfs) Attr

func (l *LocalIpfs) Attr(attr string) (string, error)

func (*LocalIpfs) Config

func (l *LocalIpfs) Config() (interface{}, error)

func (*LocalIpfs) Connect

func (l *LocalIpfs) Connect(ctx context.Context, tbn testbedi.Core) error

func (*LocalIpfs) Deployment

func (l *LocalIpfs) Deployment() string

func (*LocalIpfs) Dir

func (l *LocalIpfs) Dir() string

func (*LocalIpfs) Events

func (l *LocalIpfs) Events() (io.ReadCloser, error)

func (*LocalIpfs) GetAttrDesc

func (l *LocalIpfs) GetAttrDesc(attr string) (string, error)

func (*LocalIpfs) GetAttrList

func (l *LocalIpfs) GetAttrList() []string

func (*LocalIpfs) GetMetricDesc

func (l *LocalIpfs) GetMetricDesc(attr string) (string, error)

func (*LocalIpfs) GetMetricList

func (l *LocalIpfs) GetMetricList() []string

func (*LocalIpfs) Heartbeat

func (l *LocalIpfs) Heartbeat() (map[string]string, error)

func (*LocalIpfs) Init

func (l *LocalIpfs) Init(ctx context.Context, agrs ...string) (testbedi.Output, error)

func (*LocalIpfs) Logs

func (l *LocalIpfs) Logs() (io.ReadCloser, error)

func (*LocalIpfs) Metric

func (l *LocalIpfs) Metric(metric string) (string, error)

func (*LocalIpfs) PeerID

func (l *LocalIpfs) PeerID() (string, error)

func (*LocalIpfs) RunCmd

func (l *LocalIpfs) RunCmd(ctx context.Context, stdin io.Reader, args ...string) (testbedi.Output, error)

func (*LocalIpfs) SetAttr

func (l *LocalIpfs) SetAttr(string, string) error

func (*LocalIpfs) Shell

func (l *LocalIpfs) Shell(ctx context.Context, nodes []testbedi.Core) error

func (*LocalIpfs) Start

func (l *LocalIpfs) Start(ctx context.Context, wait bool, args ...string) (testbedi.Output, error)

func (*LocalIpfs) StderrReader

func (l *LocalIpfs) StderrReader() (io.ReadCloser, error)

func (*LocalIpfs) StdoutReader

func (l *LocalIpfs) StdoutReader() (io.ReadCloser, error)

func (*LocalIpfs) Stop

func (l *LocalIpfs) Stop(ctx context.Context) error

func (*LocalIpfs) String

func (l *LocalIpfs) String() string

func (*LocalIpfs) SwarmAddrs

func (l *LocalIpfs) SwarmAddrs() ([]string, error)

func (*LocalIpfs) Type

func (l *LocalIpfs) Type() string

func (*LocalIpfs) WriteConfig

func (l *LocalIpfs) WriteConfig(cfg interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL