Documentation ¶
Index ¶
- Constants
- type Fail2ban
- type Java
- type Metadata
- type Minecraft
- type MinecraftResource
- func (m *MinecraftResource) GetCloud() string
- func (m *MinecraftResource) GetEdition() string
- func (m *MinecraftResource) GetFail2Ban() Fail2ban
- func (m *MinecraftResource) GetJDKVersion() int
- func (m *MinecraftResource) GetName() string
- func (m *MinecraftResource) GetPort() int
- func (m *MinecraftResource) GetProperties() string
- func (m *MinecraftResource) GetRCONPassword() string
- func (m *MinecraftResource) GetRCONPort() int
- func (m *MinecraftResource) GetRegion() string
- func (m *MinecraftResource) GetSSHKeyFile() string
- func (m *MinecraftResource) GetSSHPort() int
- func (m *MinecraftResource) GetSSHPublicKey() string
- func (m *MinecraftResource) GetSize() string
- func (m *MinecraftResource) GetVersion() string
- func (m *MinecraftResource) GetVolumeSize() int
- func (m *MinecraftResource) HasMonitoring() bool
- func (m *MinecraftResource) HasRCON() bool
- func (m *MinecraftResource) IsArm() bool
- func (m *MinecraftResource) IsProxyServer() bool
- func (m *MinecraftResource) IsSpot() bool
- type Monitoring
- type Proxy
- type Rcon
- type SSH
- type Server
- type Spec
- type Wizard
Constants ¶
View Source
const ( PROVIDER_HETZNER = "hetzner" PROVIDER_DIGITALOCEAN = "do" PROVIDER_CIVO = "civo" PROVIDER_SCALEWAY = "scaleway" PROVIDER_AKAMAI = "akamai" PROVIDER_OVH = "ovh" PROVIDER_EQUINIX = "equinix" PROVIDER_GCE = "gce" PROVIDER_VULTR = "vultr" PROVIDER_AZURE = "azure" PROVIDER_OCI = "oci" PROVIDER_IONOS = "ionos" PROVIDER_AWS = "aws" PROVIDER_VEXXHOST = "vexxhost" PROVIDER_FUGA = "fuga" PROVIDER_EXOSCALE = "exoscale" PROVIDER_MULTIPASS = "multipass" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fail2ban ¶
type Fail2ban struct { Bantime int `yaml:"bantime"` Maxretry int `yaml:"maxretry"` Ignoreip string `yaml:"ignoreip"` }
Fail2ban represents a fail2ban configuration.
type Java ¶
type Java struct { Xmx string `yaml:"xmx"` Xms string `yaml:"xms"` Options []string `yaml:"options"` OpenJDK int `yaml:"openjdk"` Rcon Rcon `yaml:"rcon"` }
Java represents a java configuration.
type Metadata ¶
type Metadata struct {
Name string `yaml:"name"`
}
Metadata represents a metadata configuration.
type Minecraft ¶
type Minecraft struct { Java Java `yaml:"java"` Properties string `yaml:"properties"` Edition string `yaml:"edition"` Version string `yaml:"version"` Eula bool `yaml:"eula"` }
Minecraft represents a minecraft configuration.
type MinecraftResource ¶
type MinecraftResource struct { Spec Spec `yaml:"spec"` APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` }
MinecraftResource represents a minecraft resource.
func (*MinecraftResource) GetCloud ¶
func (m *MinecraftResource) GetCloud() string
func (*MinecraftResource) GetEdition ¶
func (m *MinecraftResource) GetEdition() string
func (*MinecraftResource) GetFail2Ban ¶
func (m *MinecraftResource) GetFail2Ban() Fail2ban
func (*MinecraftResource) GetJDKVersion ¶
func (m *MinecraftResource) GetJDKVersion() int
func (*MinecraftResource) GetName ¶
func (m *MinecraftResource) GetName() string
func (*MinecraftResource) GetPort ¶
func (m *MinecraftResource) GetPort() int
func (*MinecraftResource) GetProperties ¶
func (m *MinecraftResource) GetProperties() string
func (*MinecraftResource) GetRCONPassword ¶
func (m *MinecraftResource) GetRCONPassword() string
func (*MinecraftResource) GetRCONPort ¶
func (m *MinecraftResource) GetRCONPort() int
func (*MinecraftResource) GetRegion ¶
func (m *MinecraftResource) GetRegion() string
func (*MinecraftResource) GetSSHKeyFile ¶ added in v0.4.0
func (m *MinecraftResource) GetSSHKeyFile() string
func (*MinecraftResource) GetSSHPort ¶
func (m *MinecraftResource) GetSSHPort() int
func (*MinecraftResource) GetSSHPublicKey ¶ added in v0.4.0
func (m *MinecraftResource) GetSSHPublicKey() string
func (*MinecraftResource) GetSize ¶
func (m *MinecraftResource) GetSize() string
func (*MinecraftResource) GetVersion ¶
func (m *MinecraftResource) GetVersion() string
func (*MinecraftResource) GetVolumeSize ¶
func (m *MinecraftResource) GetVolumeSize() int
func (*MinecraftResource) HasMonitoring ¶
func (m *MinecraftResource) HasMonitoring() bool
func (*MinecraftResource) HasRCON ¶
func (m *MinecraftResource) HasRCON() bool
func (*MinecraftResource) IsArm ¶
func (m *MinecraftResource) IsArm() bool
func (*MinecraftResource) IsProxyServer ¶
func (m *MinecraftResource) IsProxyServer() bool
func (*MinecraftResource) IsSpot ¶
func (m *MinecraftResource) IsSpot() bool
type Monitoring ¶
type Monitoring struct {
Enabled bool `json:"enabled"`
}
Monitoring represents a monitoring configuration.
type Proxy ¶
type Proxy struct { Java Java `yaml:"java"` Type string `yaml:"type"` Version string `yaml:"version"` }
Proxy represents a proxy configuration.
type Rcon ¶
type Rcon struct { Password string `yaml:"password"` Enabled bool `yaml:"enabled"` Port int `yaml:"port"` Broadcast bool `yaml:"broadcast"` }
Rcon represents a rcon configuration.
type SSH ¶
type SSH struct { Port int `yaml:"port"` PublicKeyFile string `yaml:"publickeyfile"` PublicKey string `yaml:"publickey"` Fail2ban Fail2ban `yaml:"fail2ban"` }
SSH represents a SSH configuration.
type Server ¶
type Server struct { Size string `yaml:"size"` SSH SSH `yaml:"ssh"` Cloud string `yaml:"cloud"` Region string `yaml:"region"` Port int `yaml:"port"` VolumeSize int `yaml:"volumeSize"` Spot bool `yaml:"spot"` Arm bool `yaml:"arm"` }
Server represents a server configuration.
type Spec ¶
type Spec struct { Monitoring Monitoring `json:"monitoring"` Server Server `yaml:"server"` Minecraft Minecraft `yaml:"minecraft"` Proxy Proxy `yaml:"proxy"` }
Spec represents a specification configuration.
type Wizard ¶
type Wizard struct { Name string Provider string Plan string Region string SSH string `survey:"ssh"` SSHPort string `survey:"ssh_port"` BanTime string `survey:"fail2ban_bantime"` MaxRetry string `survey:"fail2ban_maxretry"` Features []string Java string Heap string RconPw string `survey:"rconpw"` Edition string Version string Properties string }
Wizard represents a wizard configuration.
Click to show internal directories.
Click to hide internal directories.