Documentation ¶
Index ¶
- Constants
- func FindUp(name, dir string) string
- func MustOpen(name string) *os.File
- func PreviewStr(s string) string
- func RandomBytes(n int) []byte
- func RequiresDocker(t *testing.T)
- func RequiresExpensive(t *testing.T)
- func RequiresFUSE(t *testing.T)
- func RequiresLinux(t *testing.T)
- func RequiresPlugins(t *testing.T)
- func SplitLines(s string) []string
- func StrCat(args ...interface{}) []string
- func ToJSONStr(m JSONObj) string
- func URLStrToMultiaddr(u string) multiaddr.Multiaddr
- type JSONObj
Constants ¶
View Source
const ( CIDWelcomeDocs = "QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc" CIDEmptyDir = "QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn" )
Variables ¶
This section is empty.
Functions ¶
func FindUp ¶
Searches for a file in a dir, then the parent dir, etc. If the file is not found, an empty string is returned.
func PreviewStr ¶
PreviewStr returns a preview of s, which is a prefix for logging that avoids dumping a huge string to logs.
func RandomBytes ¶
func RequiresDocker ¶
func RequiresExpensive ¶
func RequiresFUSE ¶
func RequiresLinux ¶
func RequiresPlugins ¶
func SplitLines ¶
func StrCat ¶
func StrCat(args ...interface{}) []string
StrCat takes a bunch of strings or string slices and concats them all together into one string slice. If an arg is not one of those types, this panics. If an arg is an empty string, it is dropped.
func URLStrToMultiaddr ¶
func URLStrToMultiaddr(u string) multiaddr.Multiaddr
URLStrToMultiaddr converts a URL string like http://localhost:80 to a multiaddr.
Types ¶
Click to show internal directories.
Click to hide internal directories.