Documentation
¶
Overview ¶
Package ipfsadd is a simplified copy of go-ipfs/core/coreunix/add.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adder ¶
type Adder struct {
Out chan api.AddedOutput
Progress bool
Trickle bool
RawLeaves bool
Silent bool
NoCopy bool
Chunker string
CidBuilder cid.Builder
// Cluster: ipfs does a hack in commands/add.go to set the filenames
// in emitted events correctly. We carry a root folder name (or a
// filename in the case of single files here and emit those events
// correctly from the beginning).
OutputPrefix string
// contains filtered or unexported fields
}
Adder holds the switches passed to the `add` command.
func (*Adder) AddAllAndPin ¶ added in v0.12.0
AddAllAndPin adds the given request's files and pin them. Cluster: we don'pin. Former AddFiles.
func (*Adder) PinRoot ¶ added in v0.12.0
PinRoot recursively pins the root node of Adder and writes the pin state to the backing datastore. Cluster: we don't pin. Former Finalize().
func (*Adder) SetMfsRoot ¶
SetMfsRoot sets `r` as the root for Adder.
Click to show internal directories.
Click to hide internal directories.