Documentation ¶
Index ¶
- Variables
- func ApiEndpoint(ipfspath string) (string, error)
- func ArrayContainsEnvVar(arr []string, ev string) bool
- func BeforeVersion(check, cur string) bool
- func BoldText(s string) string
- func CopyTo(src, dest string) error
- func Fetch(ipfspath string) (io.ReadCloser, error)
- func HasDaemonRunning() bool
- func IpfsDir() string
- func Move(src, dest string) error
- func OsExeFileName(s string) string
- func ReplaceEnvVarIfExists(arr []string, ev string, val string) []string
- func RunCmd(p, bin string, args ...string) (string, error)
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 ArrayContainsEnvVar ¶ added in v1.5.3
func BeforeVersion ¶
func CopyTo ¶
[2018.06.06] This function is needed because os.Rename doesn't work across filesystem boundaries.
func HasDaemonRunning ¶
func HasDaemonRunning() bool
func OsExeFileName ¶ added in v1.5.3
func ReplaceEnvVarIfExists ¶ added in v1.5.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.