pluginmockfilecoin

package
v1.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewNode testbedi.NewNodeFunc // nolint: golint
View Source
var PluginName = "mockfilecoin"

PluginName is the name of the plugin

Functions

This section is empty.

Types

type Mockfilecoin

type Mockfilecoin struct {
	// contains filtered or unexported fields
}

Mockfilecoin is a mock structure used for testing things that use venus iptb plugins

func (*Mockfilecoin) APIAddr

func (m *Mockfilecoin) APIAddr() (string, error)

APIAddr is not implemented

func (*Mockfilecoin) Config

func (m *Mockfilecoin) Config() (interface{}, error)

Config is not implemented

func (*Mockfilecoin) Connect

func (m *Mockfilecoin) Connect(ctx context.Context, n testbedi.Core) error

Connect is not implemented

func (*Mockfilecoin) Dir

func (m *Mockfilecoin) Dir() string

Dir is not implemented

func (*Mockfilecoin) Init

func (m *Mockfilecoin) Init(ctx context.Context, args ...string) (testbedi.Output, error)

Init is not implemented

func (*Mockfilecoin) PeerID

func (m *Mockfilecoin) PeerID() (string, error)

PeerID is not implemented

func (*Mockfilecoin) RunCmd

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

RunCmd will return "string" for args "", json for args "json", and ldjson for args "ldjson"

func (*Mockfilecoin) Shell

func (m *Mockfilecoin) Shell(ctx context.Context, ns []testbedi.Core) error

Shell is not implemented

func (*Mockfilecoin) Start

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

Start is not implemented

func (*Mockfilecoin) StderrReader

func (m *Mockfilecoin) StderrReader() (io.ReadCloser, error)

StderrReader returns an io.ReadCloser that represents daemon stderr

func (*Mockfilecoin) StdoutReader

func (m *Mockfilecoin) StdoutReader() (io.ReadCloser, error)

StdoutReader returns an io.ReadCloser that represents daemon stdout

func (*Mockfilecoin) Stop

func (m *Mockfilecoin) Stop(ctx context.Context) error

Stop is not implemented

func (*Mockfilecoin) String

func (m *Mockfilecoin) String() string

String is not implemented

func (*Mockfilecoin) SwarmAddrs

func (m *Mockfilecoin) SwarmAddrs() ([]string, error)

SwarmAddrs is not implemented

func (*Mockfilecoin) Type

func (m *Mockfilecoin) Type() string

Type is not implemented

func (*Mockfilecoin) WriteConfig

func (m *Mockfilecoin) WriteConfig(interface{}) error

WriteConfig is not implemented

Jump to

Keyboard shortcuts

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