utils

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileTypeTar  = "tar"
	FileTypeZip  = "zip"
	FileTypeGzip = "gzip"
	FileTypeBzip = "bzip"
	FileTypeXz   = "xz"
)

Variables

View Source
var (
	PluginFileDir      = config.StringOrPanic("platform.plugins_storage_dir")
	PluginWorkspaceDir = config.StringOrPanic("platform.plugin_runtime_dir")
)
View Source
var MalformedVersionError = errors.New("Malformed version string")

Functions

func GetPluginConfigPath

func GetPluginConfigPath(appUUID string, version string) string

func GetPluginDir

func GetPluginDir(appUUID string, version string) string

func GetPluginSoFile

func GetPluginSoFile(appUUID string, version string) string

func GetPluginUpgradeFilePath

func GetPluginUpgradeFilePath(appUUID string) string

func GetPluginWorkspace

func GetPluginWorkspace(appUUID string, version string) string

func GetYamlFromFile

func GetYamlFromFile(fileHeader *multipart.FileHeader, file multipart.File) (content string, err error)

func IsPluginYamlPath

func IsPluginYamlPath(yamlPath string) bool

func NewInstanceUUID

func NewInstanceUUID() string

func PluginVersionCompare

func PluginVersionCompare(version1, version2 string) (result int, err error)

func ReadFile

func ReadFile(filePath string) ([]byte, error)

func SaveDecompressedFiles

func SaveDecompressedFiles(fileHeader *multipart.FileHeader, path string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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