Documentation
¶
Index ¶
- Variables
- func Add(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func AddPath(n *core.IpfsNode, fpath string, depth int, out io.Writer) (*dag.Node, error)
- func BlockGet(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func BlockPut(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Cat(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Diag(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Log(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Ls(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func ObjectData(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func ObjectGet(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func ObjectLinks(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func ObjectPut(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Pin(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func PrintDiagnostics(info []*diagn.DiagInfo, out io.Writer)
- func Publish(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Refs(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Resolve(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func Unpin(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func UpdateApply(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func UpdateCheck(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- func UpdateLog(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error
- type CmdFunc
Constants ¶
This section is empty.
Variables ¶
var ErrDepthLimitExceeded = fmt.Errorf("depth limit exceeded")
Error indicating the max depth has been exceded.
var ErrObjectTooLarge = errors.New("input object was too large. limit is 512kbytes")
ErrObjectTooLarge is returned when too much data was read from stdin. current limit 512k
var ErrUnknownObjectEnc = errors.New("unknown object encoding")
ErrUnknownObjectEnc is returned if a invalid encoding is supplied
Functions ¶
func ObjectData ¶
ObjectData takes a key string from args and writes out the raw bytes of that node (if there is one)
func ObjectGet ¶
ObjectGet takes a key string from args and a format option and serializes the dagnode to that format
func ObjectLinks ¶
ObjectLinks takes a key string from args and lists the links it points to
func ObjectPut ¶
ObjectPut takes a format option, serilizes bytes from stdin and updates the dag with that data
func UpdateApply ¶
UpdateApply applys an update of the ipfs binary and shuts down the node if successful
func UpdateCheck ¶
UpdateCheck checks wether there is an update available