Documentation ¶
Index ¶
- Variables
- type Mockfilecoin
- func (m *Mockfilecoin) APIAddr() (string, error)
- func (m *Mockfilecoin) Config() (interface{}, error)
- func (m *Mockfilecoin) Connect(ctx context.Context, n testbedi.Core) error
- func (m *Mockfilecoin) Dir() string
- func (m *Mockfilecoin) Init(ctx context.Context, args ...string) (testbedi.Output, error)
- func (m *Mockfilecoin) PeerID() (string, error)
- func (m *Mockfilecoin) RunCmd(ctx context.Context, stdin io.Reader, args ...string) (testbedi.Output, error)
- func (m *Mockfilecoin) Shell(ctx context.Context, ns []testbedi.Core) error
- func (m *Mockfilecoin) Start(ctx context.Context, wait bool, args ...string) (testbedi.Output, error)
- func (m *Mockfilecoin) StderrReader() (io.ReadCloser, error)
- func (m *Mockfilecoin) StdoutReader() (io.ReadCloser, error)
- func (m *Mockfilecoin) Stop(ctx context.Context) error
- func (m *Mockfilecoin) String() string
- func (m *Mockfilecoin) SwarmAddrs() ([]string, error)
- func (m *Mockfilecoin) Type() string
- func (m *Mockfilecoin) WriteConfig(interface{}) error
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) 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) SwarmAddrs ¶
func (m *Mockfilecoin) SwarmAddrs() ([]string, error)
SwarmAddrs is not implemented
func (*Mockfilecoin) WriteConfig ¶
func (m *Mockfilecoin) WriteConfig(interface{}) error
WriteConfig is not implemented
Click to show internal directories.
Click to hide internal directories.