Documentation
¶
Index ¶
- Constants
- func BuildAndDoHttp(url string, method string, ignoreBadCert bool) (*http.Response, error)
- func BuildPrefix(app string) string
- func DownloadFile(url string, fileName string, ignoreBadCert bool) (int64, error)
- func FileOrDirExists(filename string) bool
- func GetSymlinkTarget(path string) string
- func GetVersion(url string, definition *data.AppDefinition, apiKey string, requestBody string) (*version.Version, error)
- func IsDirectory(path string) bool
- func IsSymlink(path string) bool
- func SymlinkPointsToUnknownTarget(path string) bool
Constants ¶
View Source
const USER_AGENT_BROWSER = `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11`
View Source
const USER_AGENT_WGET = `curl/7.54`
Variables ¶
This section is empty.
Functions ¶
func BuildAndDoHttp ¶ added in v1.13.0
func BuildPrefix ¶ added in v1.8.2
func DownloadFile ¶
DownloadFile downloads a file from a URL
func FileOrDirExists ¶
FileOrDirExists returns true if a file/directory is valid AND exists
func GetSymlinkTarget ¶ added in v1.12.0
func GetVersion ¶ added in v1.12.0
func GetVersion(url string, definition *data.AppDefinition, apiKey string, requestBody string) (*version.Version, error)
GetVersion will return extracted text from a page at a URL
func IsDirectory ¶
func SymlinkPointsToUnknownTarget ¶ added in v1.12.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.