ipfs

package
v0.0.0-...-7491e2d Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFileOutput

type AddFileOutput struct {
	Name string
	Cid  map[string]string
	Size int64
}

type ClusterClient

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

func NewClusterClient

func NewClusterClient(url string) *ClusterClient

func (*ClusterClient) Add

func (c *ClusterClient) Add(r io.Reader) (string, error)

type FsClient

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

func NewFsClient

func NewFsClient(conf *common.IpfsConfig) (*FsClient, error)

func (*FsClient) Close

func (c *FsClient) Close() error

func (*FsClient) CopyToRemote

func (c *FsClient) CopyToRemote(src string, dst string) error

func (*FsClient) Open

func (c *FsClient) Open(name string) (common.FsReader, error)

func (*FsClient) ReadDir

func (c *FsClient) ReadDir(dirname string) ([]os.FileInfo, error)

func (*FsClient) Stat

func (c *FsClient) Stat(name string) (os.FileInfo, error)

type FsReader

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

func (*FsReader) Close

func (r *FsReader) Close() error

func (*FsReader) Read

func (r *FsReader) Read(p []byte) (n int, err error)

func (*FsReader) ReadAt

func (r *FsReader) ReadAt(b []byte, offset int64) (int, error)

func (*FsReader) Seek

func (r *FsReader) Seek(offset int64, whence int) (int64, error)

func (*FsReader) Stat

func (r *FsReader) Stat() os.FileInfo

Jump to

Keyboard shortcuts

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