client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id uint32

	Contents map[uint32]*content
	// contains filtered or unexported fields
}

type Factory

type Factory struct {
	helpers.Methods
	// contains filtered or unexported fields
}

func New

func New(i vm.Instance, ipfs ipfs.Service, helper helpers.Methods) *Factory

func (*Factory) Close

func (f *Factory) Close() error

func (*Factory) Load

func (f *Factory) Load(hm vm.HostModule) (err error)

func (*Factory) Name

func (f *Factory) Name() string

func (*Factory) W_ipfsCloseFile

func (f *Factory) W_ipfsCloseFile(ctx context.Context, module common.Module,
	clientId,
	contentId uint32,
) errno.Error

func (*Factory) W_ipfsFileCid

func (f *Factory) W_ipfsFileCid(ctx context.Context, module common.Module,
	clientId,
	contentId,
	cidPtr uint32,
) errno.Error

func (*Factory) W_ipfsNewContent

func (f *Factory) W_ipfsNewContent(ctx context.Context, module common.Module,
	clientId,
	contentIdPtr uint32,
) errno.Error

func (*Factory) W_ipfsOpenFile

func (f *Factory) W_ipfsOpenFile(ctx context.Context, module common.Module,
	clientId,
	contentIdPtr,
	cidPtr uint32,
) errno.Error

func (*Factory) W_ipfsPushFile

func (f *Factory) W_ipfsPushFile(ctx context.Context, module common.Module,
	clientId,
	contentId,
	cidPtr uint32,
) errno.Error

func (*Factory) W_ipfsReadFile

func (f *Factory) W_ipfsReadFile(ctx context.Context, module common.Module,
	clientId,
	contentId,
	buf, bufLen,
	countPtr uint32,
) errno.Error

func (*Factory) W_ipfsSeekFile

func (f *Factory) W_ipfsSeekFile(ctx context.Context, module common.Module,
	clientId,
	contentId uint32,
	offset int64,
	whence,
	offsetPtr uint32,
) errno.Error

func (*Factory) W_ipfsWriteFile

func (f *Factory) W_ipfsWriteFile(ctx context.Context, module common.Module,
	clientId,
	contentId,
	buf, bufLen,
	writePtr uint32,
) errno.Error

func (*Factory) W_newIpfsClient

func (f *Factory) W_newIpfsClient(ctx context.Context, module common.Module,
	clientIdPtr uint32,
) errno.Error

Jump to

Keyboard shortcuts

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