helper

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPrefix added in v1.8.2

func BuildPrefix(app string) string

func DownloadFile

func DownloadFile(url string, fileName string) (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