ipfs

package
v0.0.0-...-a4de9da Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIV0FILES = "/api/v0/files"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

type Files struct{}

type IPFSV0

type IPFSV0 struct {
	Url       string
	BasicAuth string
	Files     *Files
}

func (*IPFSV0) ADD

func (IPFS *IPFSV0) ADD(Payload *request.Payload, path string)

func (*IPFSV0) CAT

func (IPFS *IPFSV0) CAT(path string)

func (*IPFSV0) CP

func (IPFS *IPFSV0) CP(source, dest string)

func (*IPFSV0) FLUSH

func (IPFS *IPFSV0) FLUSH(path string)

func (*IPFSV0) LS

func (IPFS *IPFSV0) LS(path string, isHash bool) (List *ResultLS, err error)

func (*IPFSV0) READ

func (IPFS *IPFSV0) READ(path string)

func (*IPFSV0) RM

func (IPFS *IPFSV0) RM(name string)

func (*IPFSV0) Stat

func (IPFS *IPFSV0) Stat(path string) (Info *V0Info, err error)

type ResultLS

type ResultLS struct {
	Entries []*V0Info `json:"Entries"`
}

type V0Info

type V0Info struct {
	Name           string      `json:"Name"`
	Type           interface{} `json:"Type"`
	Size           int         `json:"Size"`
	Hash           string      `json:"Hash"`
	CumulativeSize int         `json:"CumulativeSize"`
	Blocks         int         `json:"Blocks"`
}

Jump to

Keyboard shortcuts

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