Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateUpdateTemplateArgs ¶
type CreateUpdateTemplateArgs struct { Mount string SSHPublicKey string Name TemplateName }
type Template ¶
func GetUpdateTemplate ¶
func GetUpdateTemplate() *Template
func NewTemplateBash ¶
func NewTemplateCloudConfig ¶
func (*Template) DoUpdate ¶
func (t *Template) DoUpdate(model *model.MinecraftResource, args *CreateUpdateTemplateArgs) (string, error)
func (*Template) GetTemplate ¶
func (t *Template) GetTemplate(model *model.MinecraftResource, args *CreateUpdateTemplateArgs) (string, error)
type TemplateName ¶
type TemplateName string //nolint:revive
const ( TemplateBash TemplateName = "bash" TemplateCloudConfig TemplateName = "cloud-config" TemplateJavaBinary TemplateName = "java-binary" TemplateBedrockBinary TemplateName = "bedrock-binary" TemplateSpigotBukkitBinary TemplateName = "spigotbukkit-binary" TemplateFabricBinary TemplateName = "fabric-binary" TemplateForgeBinary TemplateName = "forge-binary" TemplatePaperMCBinary TemplateName = "papermc-binary" TemplatePurpurBinary TemplateName = "purpur-binary" TemplateProxyCloudConfig TemplateName = "proxy-cloud-config" TemplateProxyBash TemplateName = "proxy-bash" TemplateBungeeCordBinary TemplateName = "bungeecord-binary" TemplateWaterfallBinary TemplateName = "waterfall-binary" TemplateVelocityBinary TemplateName = "velocity-binary" TemplateNukkitBinary TemplateName = "nukkit-binary" TemplatePowerNukkitBinary TemplateName = "powernukkit-binary" )
func GetTemplateBashName ¶
func GetTemplateBashName(isProxy bool) TemplateName
func GetTemplateCloudConfigName ¶
func GetTemplateCloudConfigName(isProxy bool) TemplateName
Click to show internal directories.
Click to hide internal directories.