Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainerEnvVar ¶
NewContainerEnvVar creates a new instance of ContainerEnvVar given a name and value.
func RemoveServer ¶
RemoveServer stops and removes a server container.
func RunServer ¶
func RunServer(ctx context.Context, config ContainerConfig) (container.CreateResponse, error)
RunServer creates a server container and starts it. Similar to `docker run`.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { Name string Image string ExposedPorts nat.PortSet Binds []string Env []string }
ContainerConfig is a set of configurations to pass to the docker engine to create the server container.
func NewContainerConfig ¶
func NewContainerConfig(name string, gameSchema schema.Schema, server types.Server) (ContainerConfig, error)
NewContainerConfig creates a new ContainerConfig from a name, game schema and a server.
Click to show internal directories.
Click to hide internal directories.