Documentation ¶
Index ¶
- Constants
- Variables
- func AuditWrite(who, what, where string)
- func DeleteServer(id string) error
- func DeployJar(flavor, release, serverID string) error
- func DownloadJar(flavor, release, jarURL string, force bool) error
- func EraseServerFile(id, fname string) error
- func GetReleases(flavor string) ([]string, error)
- func GitCommit(serverID, message string) error
- func JarExists(flavor, release string) bool
- func MakeServerDir(id string) error
- func Prepare(sd string) error
- func SetupServerBackup(serverID string) error
- func WriteServerFile(id, fname string, content []byte) error
Constants ¶
View Source
const GITCONFIG = `` /* 143-byte string literal not displayed */
GITCONFIG is the default contents of the .git/gitconfig file
View Source
const GITIGNORE = `
*~
logs/
`
GITIGNORE is the default contents of the .gitignore file
Variables ¶
View Source
var ( STORAGEDIR string JARDIR string SERVERDIR string SPIGOTBLDDIR string )
Necesary storage directories
View Source
var ( DEFAULTFILEPERM fs.FileMode = 0640 DEFAULTDIRPERM fs.FileMode = 0750 )
Default file and directory permissions
Functions ¶
func AuditWrite ¶
func AuditWrite(who, what, where string)
AuditWrite writes an entry to the audit log
func DeployJar ¶
DeployJar will copy (and download if necessary) the specified release jar into the server directory
func DownloadJar ¶
DownloadJar downloads a jar file
func EraseServerFile ¶
EraseServerFile will remove a file from the instance dir
func GetReleases ¶
GetReleases returns a list of jar files (minus the extension) for the specified flavor
func SetupServerBackup ¶
SetupServerBackup initializes a git repo inside an instance dir
func WriteServerFile ¶
WriteServerFile will save the given filename (and content) to the server directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.