501409827e
some minor stuff just pushing so I can try to replace fsouza/go-dockerclient with moby/moby/client
33 lines
972 B
Go
33 lines
972 B
Go
package constants
|
|
|
|
import "os"
|
|
|
|
// Version is the current wings version.
|
|
const Version = "0.0.1-alpha"
|
|
|
|
/* ---------- PATHS ---------- */
|
|
|
|
// DefaultFilePerms are the file perms used for created files.
|
|
const DefaultFilePerms os.FileMode = 0644
|
|
|
|
// DefaultFolderPerms are the file perms used for created folders.
|
|
const DefaultFolderPerms os.FileMode = 0744
|
|
|
|
// ServersPath is the path of the servers within the configured DataPath.
|
|
const ServersPath = "servers"
|
|
|
|
// ServerConfigFile is the filename of the server config file.
|
|
const ServerConfigFile = "server.json"
|
|
|
|
// ServerDataPath is the path of the data of a single server.
|
|
const ServerDataPath = "data"
|
|
|
|
/* ---------- MISC ---------- */
|
|
|
|
// JSONIndent is the indent to use with the json.MarshalIndent() function.
|
|
const JSONIndent = " "
|
|
|
|
// DockerContainerPrefix is the prefix used for naming Docker containers.
|
|
// It's also used to prefix the hostnames of the docker containers.
|
|
const DockerContainerPrefix = "ptdl-"
|