Phase2
This commit is contained in:
@@ -120,6 +120,31 @@ type ServerStartPayload struct {
|
||||
DesiredGeneration int64 `json:"desiredGeneration"`
|
||||
}
|
||||
|
||||
// ServerProvisionPayload instructs the agent to create a Minecraft server container.
|
||||
type ServerProvisionPayload struct {
|
||||
OperationMeta
|
||||
Edition string `json:"edition"`
|
||||
SoftwareFamily string `json:"softwareFamily"`
|
||||
MinecraftVersion string `json:"minecraftVersion"`
|
||||
HostPort int `json:"hostPort"`
|
||||
RamMb int `json:"ramMb"`
|
||||
DataPath string `json:"dataPath"`
|
||||
EulaAccepted bool `json:"eulaAccepted"`
|
||||
}
|
||||
|
||||
// ServerStopPayload instructs the agent to stop a running game server.
|
||||
type ServerStopPayload struct {
|
||||
OperationMeta
|
||||
}
|
||||
|
||||
// ServerOperationResultPayload reports the outcome of a lifecycle operation.
|
||||
type ServerOperationResultPayload struct {
|
||||
OperationMeta
|
||||
ResultCode string `json:"resultCode"`
|
||||
ErrorCode string `json:"errorCode,omitempty"`
|
||||
ErrorMessage string `json:"errorMessage,omitempty"`
|
||||
}
|
||||
|
||||
// ServerStatePayload reports the observed server state.
|
||||
type ServerStatePayload struct {
|
||||
OperationMeta
|
||||
|
||||
Reference in New Issue
Block a user