Versions in this module Expand all Collapse all v0 v0.0.1 Jun 3, 2019 Changes in this version + func NewDefaultNodeWithFSRepo(ctx context.Context, repoPath string) (*core.IpfsNode, error) + func NewTmpDirNode(ctx context.Context) (*core.IpfsNode, error) + type Interface interface + Add func(io.Reader) (string, error) + Cat func(path string) (io.ReadCloser, error) + Get func(hash string, outdir string) error + type Shell struct + func NewShell(node *core.IpfsNode) *Shell + func NewShellWithContext(node *core.IpfsNode, ctx context.Context) *Shell + func (s *Shell) Add(r io.Reader) (string, error) + func (s *Shell) AddLink(target string) (string, error) + func (s *Shell) Cat(p string) (io.ReadCloser, error) + func (s *Shell) Get(ref, outdir string) error + func (s *Shell) List(ipath string) ([]*sh.LsLink, error) + func (s *Shell) NewObject(template string) (string, error) + func (s *Shell) Patch(root, action string, args ...string) (string, error) + func (s *Shell) PatchLink(root, npath, childhash string, create bool) (string, error) + func (s *Shell) ResolvePath(ipath string) (string, error)