ipfs

package
v0.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: GPL-3.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

Client is a wrapper around the IPFS shell client.

func NewClient

func NewClient(ipfsApiAddr string) *Client

func (*Client) AddDirectory

func (c *Client) AddDirectory(dirPath string) (string, error)

AddDirectory adds a local directory to IPFS.

func (*Client) ImportSecpk251PubKey

func (c *Client) ImportSecpk251PubKey(ctx context.Context, pubKey *crypto.PubKey, options ...shell.KeyImportOpt) (string, error)

ImportSecpk251PubKey imports a secpk251 public key with the given name and key bytes.

func (*Client) TraverseLocalDirectory

func (c *Client) TraverseLocalDirectory(dirPath string, operation func(filePath string, info os.FileInfo) error) error

TraverseLocalDirectory traverses the given local directory and performs the specified operation on each file.

Jump to

Keyboard shortcuts

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