Versions in this module Expand all Collapse all v0 v0.1.0 Feb 20, 2020 Changes in this version + const ErrorApp + const ErrorNode + const ErrorUser + const RequestDELETE + const RequestGET + const RequestPATCH + const RequestPOST + const RequestPUT + func CheckJWTValid(jwt string) bool + func EnsureFolder(path string) error + func ExitWithError(errType string, errMessage string, errData error) + func FileExists(path string) (bool, error) + func IsRegularFile(path string) (bool, error) + func LaunchBrowser(url string) + func PathExists(path string) (bool, error) + func RequestJSON(opts RequestOpts) (err error) + func RequestRaw(opts RequestOpts) (response io.ReadCloser, err error) + func SliceContainsString(s []string, e string) bool + func TarBZ2(src string, writers ...io.Writer) error + type NodeStore struct + func (s *NodeStore) GetAuthToken(address string) string + func (s *NodeStore) Init() error + func (s *NodeStore) StoreAuthToken(address string, idToken string, refreshToken string, clientID string, ...) error + func (s *NodeStore) StoreSharedKey(address string, sharedKey string) error + type RequestOpts struct + Authorization string + Body io.Reader + BodyContentType string + Client *http.Client + Method string + StatusCode int + Target interface{} + URL string