coreunix

package
v0.2.2-buildfails Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 16 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(n *core.IpfsNode, r io.Reader) (string, error)

Add builds a merkledag from the a reader, pinning all objects to the local datastore. Returns a key representing the root node.

func AddMetadataTo

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

func AddR

func AddR(n *core.IpfsNode, root string) (key string, err error)

AddR recursively adds files in |path|.

func AddWrapped

func AddWrapped(n *core.IpfsNode, r io.Reader, filename string) (string, *merkledag.Node, error)

AddWrapped adds data from a reader, and wraps it with a directory object to preserve the filename. Returns the path of the added file ("<dir hash>/filename"), the DAG node of the directory, and and error if any.

func Cat

func Cat(n *core.IpfsNode, pstr string) (io.Reader, error)

func Metadata

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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