services

package
v0.0.0-...-0dbfd36 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	SSHClient  *ssh.Client
	SFTPClient *sftp.Client
}

func Connect

func Connect(host string, username string, password string) (Connection, error)

func (Connection) Close

func (conn Connection) Close()

func (Connection) Execute

func (conn Connection) Execute(cmd string) error

func (Connection) GetFile

func (conn Connection) GetFile(srcPath string, destPath string) error

func (Connection) PutFile

func (conn Connection) PutFile(srcPath string, destPath string) error

type Minecraft

type Minecraft struct {
	SavesDir string
	Name     string
	Host     string
	Username string
	Password string
}

func (Minecraft) Create

func (m Minecraft) Create() error

func (Minecraft) Start

func (m Minecraft) Start() error

func (Minecraft) Stop

func (m Minecraft) Stop() error

Jump to

Keyboard shortcuts

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