util

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

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

	InsideGUI = func() bool { return false }
)

Functions

func ApiEndpoint

func ApiEndpoint(ipfspath string) (string, error)

func ArrayContainsEnvVar added in v1.5.3

func ArrayContainsEnvVar(arr []string, ev string) bool

func BeforeVersion

func BeforeVersion(check, cur string) bool

func BoldText added in v1.4.0

func BoldText(s string) string

func CopyTo

func CopyTo(src, dest string) error

[2018.06.06] This function is needed because os.Rename doesn't 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 OsExeFileName added in v1.5.3

func OsExeFileName(s string) string

func ReplaceEnvVarIfExists added in v1.5.3

func ReplaceEnvVarIfExists(arr []string, ev string, val string) []string

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