Documentation ¶
Index ¶
- Constants
- Variables
- func GetPluginConfigPath(appUUID string, version string) string
- func GetPluginDir(appUUID string, version string) string
- func GetPluginSoFile(appUUID string, version string) string
- func GetPluginUpgradeFilePath(appUUID string) string
- func GetPluginWorkspace(appUUID string, version string) string
- func GetYamlFromFile(fileHeader *multipart.FileHeader, file multipart.File) (content string, err error)
- func IsPluginYamlPath(yamlPath string) bool
- func NewInstanceUUID() string
- func PluginVersionCompare(version1, version2 string) (result int, err error)
- func ReadFile(filePath string) ([]byte, error)
- func SaveDecompressedFiles(fileHeader *multipart.FileHeader, path string) error
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 GetPluginDir ¶
func GetPluginSoFile ¶
func GetPluginWorkspace ¶
func GetYamlFromFile ¶
func IsPluginYamlPath ¶
func NewInstanceUUID ¶
func NewInstanceUUID() string
func PluginVersionCompare ¶
func SaveDecompressedFiles ¶
func SaveDecompressedFiles(fileHeader *multipart.FileHeader, path string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.