util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalGatewayUrl = "https://ipfs.io"
	LocalApiUrl      = "http://localhost:5001"
	IpfsVersionPath  = "/ipns/dist.ipfs.io"
)

Functions

func ApiEndpoint

func ApiEndpoint(ipfspath string) (string, error)

func BeforeVersion

func BeforeVersion(check, cur string) bool

func CopyTo

func CopyTo(src, dest string) error

This function is needed because os.Rename doesnt work across filesystem boundaries.

func Fetch

func Fetch(ipfspath string) (io.ReadCloser, error)

func HasDaemonRunning

func HasDaemonRunning() bool

func IpfsDir

func IpfsDir() string

func Move

func Move(src, dest string) error

func RunCmd

func RunCmd(p, bin string, args ...string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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