ipfs

package module
v0.0.0-...-07aa64c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 39 Imported by: 0

README

ipfs-util

ipfs wrapper

Documentation

Index

Constants

View Source
const KeyType_Original pb.KeyType = 100

Variables

View Source
var File fileUtil
View Source
var KeyFileMode = "ed25519"
View Source
var Name nameUtil
View Source
var Object objectUtil

Functions

func UnmarshalOriginalPrivKey

func UnmarshalOriginalPrivKey(m []byte) (p2pcrypt.PrivKey, error)

func UnmarshalOriginalPubKey

func UnmarshalOriginalPubKey(m []byte) (p2pcrypt.PubKey, error)

Types

type IPFS

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

func New

func New(mode string) (*IPFS, error)

func (*IPFS) Close

func (ipfs *IPFS) Close()

func (*IPFS) File

func (self *IPFS) File() *file

func (*IPFS) Name

func (self *IPFS) Name() *name

func (*IPFS) Object

func (self *IPFS) Object() *object

func (*IPFS) Pin

func (self *IPFS) Pin() *pin

func (*IPFS) PubSub

func (self *IPFS) PubSub() *pubsub

type KeyFile

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

func (*KeyFile) Equals

func (kf *KeyFile) Equals(kf2 *KeyFile) bool

func (KeyFile) Marshal

func (kf KeyFile) Marshal() []byte

func (*KeyFile) Name

func (kf *KeyFile) Name() (string, error)

func (*KeyFile) Unmarshal

func (kf *KeyFile) Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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