Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolJava Protocol = "java" ProtocolBedrock Protocol = "bedrock" // DefaultJavaImageTag is the itzg/minecraft-server tag used when a // qualified seed does not pin a full image. It is a tag, not a live // registry lookup: create still resolves the daemon reference from it. DefaultJavaImageTag = "java21" // NativeBedrockLimitation is the supported-mode label for the builtin // Bedrock full-image seed. A seed row is not a native edition path. NativeBedrockLimitation = "" /* 130-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func InitBuiltinBlueprints ¶
InitBuiltinBlueprints upserts builtin seeds (idempotent).
func Seed ¶
func Seed() []storage.ServerBlueprint
Seed returns the builtin server blueprints (MINE-143).
Types ¶
type Protocol ¶ added in v1.0.40
type Protocol string
Protocol is the player-facing edition grammar a seed would boot.
type Spec ¶ added in v1.0.40
type Spec struct {
ID string
Qualified bool
Limitation string
ModLoader storage.ModLoader
MCVersion string
StoredImage string
Image string
Env map[string]string
Protocol Protocol
GamePort int
MemoryMB int
}
Spec is the create-path resolution of one catalog seed: image, env, protocol and whether that combination is a qualified Java/tag workflow.
func Resolve ¶ added in v1.0.40
func Resolve(bp storage.ServerBlueprint) (Spec, error)
Resolve turns a catalog seed into the image, env and protocol create would use. Qualification is about the create path, not the seed's display name: a Bedrock repository reference is unlabeled native edition support.
Click to show internal directories.
Click to hide internal directories.