utils

package
v0.0.0-...-b87ce86 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArchSynonyms = map[string]string{
	"x86":    "386",
	"i386":   "386",
	"i686":   "386",
	"x64":    "amd64",
	"x86_64": "amd64",
}

ArchSynonyms maps JWS architectures to Golang ones

View Source
var OSSynonyms = map[string]string{
	"mac os":       "darwin",
	"mac os x":     "darwin",
	"windows 95":   "windows",
	"windows 98":   "windows",
	"windows nt":   "windows",
	"windows 2000": "windows",
	"windows 2003": "windows",
}

OSSynonyms maps JWS OSes to Golang ones

Functions

func AreResourcesRelevantForCurrentPlatform

func AreResourcesRelevantForCurrentPlatform(os string, arch string) bool

func Extract

func Extract(zipFilename string, dir string) error

Extract unpacks zip archive zipFilename into directory dir

func GenerateResourcesDirName

func GenerateResourcesDirName(workDir string, filedata []byte) string

GenerateResourcesDirName generates a directory name for resource files.

func ParseCodebaseURL

func ParseCodebaseURL(codebase string) (*url.URL, error)

ParseCodebaseURL parses codebase URL, adds trailing slash if needed

func RemoveResourceDir

func RemoveResourceDir(workDir string, filedata []byte) error

RemoveResourceDir removes resource directory for an app filedata - content of JNLP file for app

Types

This section is empty.

Jump to

Keyboard shortcuts

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