helper

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 BuildAndDoHttp(url string, method string, ignoreBadCert bool) (*http.Response, error)

func BuildPrefix added in v1.8.2

func BuildPrefix(app string) string

func DownloadFile

func DownloadFile(url string, fileName string, ignoreBadCert bool) (int64, error)

DownloadFile downloads a file from a URL

func FileOrDirExists

func FileOrDirExists(filename string) bool

FileOrDirExists returns true if a file/directory is valid AND exists

func GetSymlinkTarget added in v1.12.0

func GetSymlinkTarget(path string) string

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 IsDirectory(path string) bool
func IsSymlink(path string) bool

func SymlinkPointsToUnknownTarget added in v1.12.0

func SymlinkPointsToUnknownTarget(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL