go-ipfs: github.com/ipfs/go-ipfs/core/coreunix Index | Files

package coreunix

import "github.com/ipfs/go-ipfs/core/coreunix"

Index

Package Files

add.go metadata.go

func AddMetadataTo Uses

func AddMetadataTo(n *core.IpfsNode, skey string, m *ft.Metadata) (string, error)

func Metadata Uses

func Metadata(n *core.IpfsNode, skey string) (*ft.Metadata, error)

type Adder Uses

type Adder struct {
    Out       chan<- interface{}
    Progress  bool
    Pin       bool
    Trickle   bool
    RawLeaves bool
    Silent    bool
    NoCopy    bool
    Chunker   string

    CidBuilder cid.Builder
    // contains filtered or unexported fields
}

Adder holds the switches passed to the `add` command.

func NewAdder Uses

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 Uses

func (adder *Adder) AddAllAndPin(file files.Node) (ipld.Node, error)

AddAllAndPin adds the given request's files and pin them.

func (*Adder) PinRoot Uses

func (adder *Adder) PinRoot(root ipld.Node) error

Recursively pins the root node of Adder and writes the pin state to the backing datastore.

func (*Adder) SetMfsRoot Uses

func (adder *Adder) SetMfsRoot(r *mfs.Root)

SetMfsRoot sets `r` as the root for Adder.

type Link struct {
    Name, Hash string
    Size       uint64
}

Package coreunix imports 23 packages (graph) and is imported by 130 packages. Updated 2019-08-12. Refresh now. Tools for package owners.