Documentation
¶
Index ¶
- Variables
- func GetServerContainer(serverCfg *config.Config) (types.ContainerJSON, error)
- func List() error
- func Logs(ctx context.Context, serverCfg *config.Config, since time.Duration, tail int, ...) (*exec.Cmd, io.ReadCloser, io.ReadCloser, error)
- func Remove(srvCfg *config.Config) error
- func Restart(serverCfg *config.Config) error
- func SendCommand(serverCfg *config.Config, args []string) error
- func Start(serverCfg *config.Config) error
- func SteamCMDUpdate(serverCfg *config.Config, beta string) error
- func Stop(serverCfg *config.Config) error
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 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 SendCommand ¶
SendCommand sends a command to a server
func SteamCMDUpdate ¶ added in v0.1.34
SteamCMDUpdate runs steamcmd.sh for a server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.