web3storage

package
v0.0.0-...-5d479c6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(proofFilePath, spaceDid, privateKey string) (*Storage, error)

func (*Storage) DownloadFile

func (c *Storage) DownloadFile(cid, fileName string) (content []byte, err error)

func (*Storage) UploadFile

func (c *Storage) UploadFile(content []byte, path string) (cid string, err error)

Jump to

Keyboard shortcuts

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