server

package
v0.1.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DockerCli Docker client
	DockerCli *client.Client
)

Functions

func GetServerContainer

func GetServerContainer(serverCfg *config.Config) (types.ContainerJSON, error)

GetServerContainer return container for given server name

func List

func List() error

List list the servers from the config

func Logs

func Logs(ctx context.Context, serverCfg *config.Config, since time.Duration, tail int, follow bool) (*exec.Cmd, io.ReadCloser, io.ReadCloser, error)

Logs show / stream the logs of a server

func Remove

func Remove(srvCfg *config.Config) error

Remove remove a server container

func Restart

func Restart(serverCfg *config.Config) error

Restart restart a server (optionally remove the server container after stop)

func SendCommand

func SendCommand(serverCfg *config.Config, args []string) error

SendCommand sends a command to a server

func Start

func Start(serverCfg *config.Config) error

Start starts a server

func SteamCMDUpdate added in v0.1.34

func SteamCMDUpdate(serverCfg *config.Config, beta string) error

SteamCMDUpdate runs steamcmd.sh for a server

func Stop

func Stop(serverCfg *config.Config) error

Stop stops a server

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL