adder

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0, MIT Imports: 15 Imported by: 1

Documentation

Overview

Simplified copy of ipfs-cluster/adder/ipfsadd/add.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

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

Adder is an filesystem interface adder for web3.storage.

func NewAdder

func NewAdder(ctx context.Context, ds ipld.DAGService) (*Adder, error)

NewAdder Returns a new Adder used for a file add operation.

func (*Adder) Add

func (adder *Adder) Add(file fs.File, dirname string, fsys fs.FS) (cid.Cid, error)

func (*Adder) MfsRoot

func (adder *Adder) MfsRoot() (*mfs.Root, error)

Jump to

Keyboard shortcuts

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