Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMetadataTo ¶
Types ¶
type Adder ¶ added in v0.4.0
type Adder struct { Out chan<- interface{} Progress bool Pin bool Trickle bool RawLeaves bool Silent bool NoCopy bool Chunker string CidBuilder cid.Builder PreserveMode bool PreserveMtime bool FileMode os.FileMode FileMtime time.Time // contains filtered or unexported fields }
Adder holds the switches passed to the `add` command.
func NewAdder ¶ added in v0.4.0
func NewAdder(ctx context.Context, p pin.Pinner, bs bstore.GCLocker, ds ipld.DAGService) (*Adder, error)
NewAdder Returns a new Adder used for a file add operation.
func (*Adder) AddAllAndPin ¶ added in v0.4.18
AddAllAndPin adds the given request's files and pin them.
func (*Adder) PinRoot ¶ added in v0.4.0
Recursively pins the root node of Adder and writes the pin state to the backing datastore.
func (*Adder) SetMfsRoot ¶ added in v0.4.3
SetMfsRoot sets `r` as the root for Adder.
Click to show internal directories.
Click to hide internal directories.