Documentation
¶
Index ¶
- Constants
- func DirExists(p string) bool
- func Download(p, u string, preserveFilename bool) (int64, string, error)
- func FileExists(p string) bool
- func GetAssetsPath(wd, asset string) string
- func GetBasenameWithoutExt(p string) string
- func GetDeepwaterDepPath(wd string, modelId int64) string
- func GetExternalHost() (string, error)
- func GetExternalIP(fallback string) string
- func GetGenModelPath(wd string, modelId int64) string
- func GetIP(addr string) string
- func GetJavaModelPath(wd string, modelId int64, logicalName string) string
- func GetJobLogFilePath(wd, id, suffix string) string
- func GetLogFilePath(wd, name string) string
- func GetMOJOPath(wd string, modelId int64, logcialName string) string
- func GetModelDirs(wd string, modelId int64) ([]string, error)
- func GetModelJarFilePath(wd string, modelId int64, logicalName string) string
- func GetModelPath(wd string, modelId int64) string
- func GetOutPath(wd, jobID string) string
- func GetPack(wd, kind, pack string) (string, bool)
- func GetPackDir(packPath string) string
- func GetPackPath(wd, kind, pack string) string
- func GetPackUrl(host, kind, pack string) string
- func GetPackageAttributes(wd string, projectId int64, packageName string) ([]byte, error)
- func GetPackagePath(wd string, projectId int64, packageName string) string
- func GetPackageRelativePath(wd string, projectId int64, packageName, relativePath string) (string, error)
- func GetProjectPath(wd string, projectId int64) string
- func GetPythonWarFilePath(wd string, modelId int64, logicalName string) string
- func GetTmpFilePath(wd, filename string) string
- func GetWarFilePath(wd string, modelId int64, logicalName string) string
- func GetWwwRoot(wd string) string
- func JsonToMap(b []byte) (map[string]string, error)
- func ListDirs(p string) ([]string, error)
- func ListFiles(p string) ([]string, error)
- func MapToJson(attrs map[string]string) ([]byte, error)
- func MkWorkingDirectory(p string) (string, error)
- func Mkdir(p string) error
- func NewID() (string, error)
- func ResolvePath(p string) (string, error)
- func Rm(p string) error
- func Rmdir(p string) error
- func SetPackageAttributes(wd string, projectId int64, packageName string, b []byte) error
- func Tail(filename string, lines int) (string, error)
- func ValidateName(name string) error
- type ByModTime
- type Log
- type Package
Constants ¶
View Source
const ( VarDir = "var" WwwDir = "www" AssetsDir = "assets" DbDir = "db" KTDir = "kt" ProjectDir = "project" ModelDir = "model" LibDir = "lib" OutDir = "out" TmpDir = "tmp" LogDir = "log" DirPerm = 0755 FilePerm = 0666 KTPerm = 0600 PackExt = ".steam" KindEngine = "engine" KindFile = "file" KindExperiment = "module" )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetAssetsPath ¶
func GetBasenameWithoutExt ¶
func GetDeepwaterDepPath ¶
func GetExternalHost ¶
func GetExternalIP ¶
func GetGenModelPath ¶
func GetJobLogFilePath ¶
func GetLogFilePath ¶
func GetModelJarFilePath ¶
func GetModelPath ¶
func GetOutPath ¶
func GetPackDir ¶
func GetPackPath ¶
func GetPackUrl ¶
func GetPackageAttributes ¶
func GetPackageRelativePath ¶
func GetProjectPath ¶
func GetPythonWarFilePath ¶
func GetTmpFilePath ¶
func GetWwwRoot ¶
func MkWorkingDirectory ¶
func ResolvePath ¶
func SetPackageAttributes ¶
func ValidateName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.