ipfs

package
v0.0.0-...-5a544cf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ipfs is a IPFS interface

https://ipfs.io/docs/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ipfs

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

Ipfs is a IPFS API manager

func GetInstance

func GetInstance() *Ipfs

GetInstance returns an instance of Ipfs

func (*Ipfs) Add

func (ipfs *Ipfs) Add(data string) (string, error)

Add returns path(file hash) after adding data to IPFS

func (*Ipfs) Cat

func (ipfs *Ipfs) Cat(path string) (ret string)

Cat returns data from IPFS with path(file hash)

func (*Ipfs) Pin

func (ipfs *Ipfs) Pin(path string) error

Pin the given path

func (*Ipfs) PinByCluster

func (ipfs *Ipfs) PinByCluster(path string) error

PinByCluster is pinning path by IPFS cluster TODO: it needs remote control for IPFS cluster like IPFS node, now it is just cli

Jump to

Keyboard shortcuts

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