serverbridge

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

Server Bridge

Responsible for commands between bot and VPS once the VPS has been provisioned.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToServer

func ConnectToServer(ctx context.Context, options *ConnectOptions, kvConn store.IKVStore) (*ssh.Client, error)

func RunCommand

func RunCommand(ctx context.Context, client *ssh.Client, command string) (stdOutLines chan string, stdErrLines chan string, doneChan chan bool, err error)

func ShutdownMinecraftServer

func ShutdownMinecraftServer(ctx context.Context, client *ssh.Client) error

Types

type ConnectOptions

type ConnectOptions struct {
	ServerIpAddress *string
	PrivateKey      *PrivateKey
}

type PrivateKey

type PrivateKey = rsa.PrivateKey

Jump to

Keyboard shortcuts

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