ipfswrapper

package module
v0.0.0-...-9657715 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

README

ipfswrapper

A simpler warpper to ipfs common tasks

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKeyIfNotExists

func GenKeyIfNotExists(privateKeyFile string) (crypto.PrivKey, error)

func Init

func Init(repoRoot string) error

Types

type DagReader

type DagReader uio.DagReader

type IpnsEntry

type IpnsEntry struct {
	Name  string
	Value string
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func Start

func Start(repoDir string, pkfile string) (*Node, error)

func (*Node) Add

func (node *Node) Add(r io.Reader) (path string, err error)

func (*Node) AddFile

func (node *Node) AddFile(fileName string) (path string, err error)

func (*Node) AddString

func (node *Node) AddString(content string) (path string, err error)

func (*Node) Get

func (node *Node) Get(pt string) (DagReader, error)

func (*Node) GetString

func (node *Node) GetString(pt string) (string, error)

func (*Node) Publish

func (node *Node) Publish(p string) (string, error)

func (*Node) Resolve

func (node *Node) Resolve(name string) (string, error)

func (*Node) Stop

func (node *Node) Stop()

Jump to

Keyboard shortcuts

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