Documentation ¶
Index ¶
- Constants
- func BuildTemplateFromPath(tmplPath string, profile *ProfileConf, buildPath string, ...)
- func BuildTemplatesFromPath(profile *ProfileConf, buildPath string, templateExtension string, ...)
- func CmdOnDir(cmdStr string, cmdDesc string, cmdDir string) string
- func CmdOnDirToStdOut(cmdStr string, cmdDesc string, cmdDir string, env []string)
- func CmdOnDirWithEnv(cmdStr string, cmdDesc string, cmdDir string, env []string) string
- func CopyStaticFile(filePathToRead string, filePathToWrite string) error
- func GCPZoneToRegion(zone interface{}) string
- func GetStaticFile(file string) (string, error)
- func IsWindowsServer() bool
- func LogDebug(message string)
- func LogError(message string)
- func LogFatal(message string)
- func LogInfo(message string)
- func LogTrace(message string)
- func LogWarn(message string)
- func RemoteGCPCommand(cmd string, dir string, profile *ProfileConf)
- func SetEnvLogLevel(logLevel LogLevel)
- func SetLogFn(_logFn func(v ...any))
- func SetPrintFn(_printFn func(v ...any) (n int, err error))
- func StrToCamel(text string) string
- func StrToMd5(text string) string
- func StrToUpperSnake(text string) string
- type ClientBuilder
- type GCPConfig
- type GameConfig
- type GameTargetConfig
- type InfraChange
- type LogLevel
- type OMGDConfig
- type PortConfig
- type ProfileConf
- func (profile ProfileConf) Get(key string) interface{}
- func (profile ProfileConf) GetArray(key string) []interface{}
- func (pc ProfileConf) GetProfileAsMap() map[interface{}]interface{}
- func (profile ProfileConf) LoadProfile() *ProfileConf
- func (profile ProfileConf) SaveProfileFromMap(profileMap *map[interface{}]interface{})
- func (profile ProfileConf) UpdateProfile(key string, val interface{})
- type ServerService
- type ServersChange
- type ServersConfig
- type StaticCodeCopyPlan
- type StaticCodeFilePathAlteration
Constants ¶
View Source
const FILE_WRITE_PERMS = 0755
Variables ¶
This section is empty.
Functions ¶
func BuildTemplateFromPath ¶
func BuildTemplateFromPath(tmplPath string, profile *ProfileConf, buildPath string, templateExtension string, removeTemplateAfterProcessing bool)
func BuildTemplatesFromPath ¶
func BuildTemplatesFromPath(profile *ProfileConf, buildPath string, templateExtension string, removeTemplateAfterProcessing bool)
func CmdOnDirToStdOut ¶ added in v0.0.67
func CmdOnDirWithEnv ¶ added in v0.0.26
func CopyStaticFile ¶
func GCPZoneToRegion ¶ added in v0.0.65
func GCPZoneToRegion(zone interface{}) string
func GetStaticFile ¶
func IsWindowsServer ¶ added in v0.0.112
func IsWindowsServer() bool
func RemoteGCPCommand ¶ added in v0.0.108
func RemoteGCPCommand(cmd string, dir string, profile *ProfileConf)
func SetEnvLogLevel ¶ added in v0.0.58
func SetEnvLogLevel(logLevel LogLevel)
Sets environment log level variable, used for tests
func SetPrintFn ¶ added in v0.0.58
Sets Logger.printFn for tests
func StrToCamel ¶
func StrToUpperSnake ¶
Types ¶
type ClientBuilder ¶ added in v0.0.73
type ClientBuilder struct { Profile *ProfileConf CmdOnDirWithEnv func(string, string, string, []string) string Targets string CopyStaticDirectory func(string, string) error }
func (*ClientBuilder) Build ¶ added in v0.0.73
func (cb *ClientBuilder) Build()
type GameConfig ¶ added in v0.0.73
type GameConfig struct {
Targets []GameTargetConfig `yaml:"targets"`
}
type GameTargetConfig ¶ added in v0.0.88
type InfraChange ¶
type InfraChange struct { OutputDir string Profile *ProfileConf CmdOnDir func(string, string, string) string CmdOnDirWithEnv func(string, string, string, []string) string SkipCleanup bool }
func (*InfraChange) InstanceDestroy ¶ added in v0.0.102
func (infraChange *InfraChange) InstanceDestroy()
func (*InfraChange) InstanceSetup ¶ added in v0.0.102
func (infraChange *InfraChange) InstanceSetup()
func (*InfraChange) PerformCleanup ¶ added in v0.0.70
func (infraChange *InfraChange) PerformCleanup()
func (*InfraChange) ProjectDestroy ¶ added in v0.0.60
func (infraChange *InfraChange) ProjectDestroy()
func (*InfraChange) ProjectSetup ¶ added in v0.0.59
func (infraChange *InfraChange) ProjectSetup()
type OMGDConfig ¶ added in v0.0.73
type OMGDConfig struct { Name string `yaml:"name"` Game GameConfig `yaml:"game"` Servers ServersConfig `yaml:"servers"` GCP GCPConfig `yaml:"gcp"` }
type PortConfig ¶ added in v0.0.90
type ProfileConf ¶
type ProfileConf struct { Name string OMGD OMGDConfig `yaml:"omgd"` OMGDProfile *ProfileConf // contains filtered or unexported fields }
func GetProfile ¶
func GetProfile(path string) *ProfileConf
func GetProfileFromDir ¶ added in v0.0.37
func GetProfileFromDir(path string, dir string) *ProfileConf
func (ProfileConf) Get ¶
func (profile ProfileConf) Get(key string) interface{}
func (ProfileConf) GetArray ¶
func (profile ProfileConf) GetArray(key string) []interface{}
func (ProfileConf) GetProfileAsMap ¶
func (pc ProfileConf) GetProfileAsMap() map[interface{}]interface{}
func (ProfileConf) LoadProfile ¶ added in v0.0.87
func (profile ProfileConf) LoadProfile() *ProfileConf
func (ProfileConf) SaveProfileFromMap ¶
func (profile ProfileConf) SaveProfileFromMap(profileMap *map[interface{}]interface{})
func (ProfileConf) UpdateProfile ¶
func (profile ProfileConf) UpdateProfile(key string, val interface{})
type ServerService ¶ added in v0.0.96
type ServerService struct {
BuildService string `yaml:"build-service"`
}
type ServersChange ¶ added in v0.0.106
type ServersChange struct { OutputDir string Profile *ProfileConf CmdOnDir func(string, string, string) string CmdOnDirWithEnv func(string, string, string, []string) string SkipCleanup bool }
func (*ServersChange) Deploy ¶ added in v0.0.106
func (serversChange *ServersChange) Deploy()
func (*ServersChange) PerformCleanup ¶ added in v0.0.106
func (serversChange *ServersChange) PerformCleanup()
type ServersConfig ¶ added in v0.0.83
type ServersConfig struct { Services []ServerService `yaml:"services"` Ports PortConfig `yaml:"ports"` Host string `yaml:"host"` }
type StaticCodeCopyPlan ¶
type StaticCodeCopyPlan struct {
// contains filtered or unexported fields
}
func (*StaticCodeCopyPlan) CopyStaticDirectory ¶
func (sccp *StaticCodeCopyPlan) CopyStaticDirectory(pathToCopy string, pathToCopyTo string) error
type StaticCodeFilePathAlteration ¶
type StaticCodeFilePathAlteration struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.