server

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSSHClient

func CreateSSHClient(params *SSHClientParams) (*ssh.Client, error)

CreateSSHClient returns new *ssh.Client by SSHClientParams

func GetDefaultUserName

func GetDefaultUserName(client *api.Client, serverID sacloud.ID) (string, error)

GetDefaultUserName returns default admin user name from source archives/disks

func StartDefaultVNCClient

func StartDefaultVNCClient(vncProxyInfo *sacloud.VNCProxyResponse) error

StartDefaultVNCClient starts OS's default VNC client

func VNCSendCommand

func VNCSendCommand(vncProxyInfo *sacloud.VNCProxyResponse, command string, option *SendCommandOption) error

VNCSendCommand sends command over VNC connection

Types

type RDPOpener

type RDPOpener struct {
	IPAddress       string
	User            string
	Port            int
	RDPFileTemplate string
}

RDPOpener information of RDP connection

func (*RDPOpener) RDPFileContent

func (c *RDPOpener) RDPFileContent() string

RDPFileContent represents .rdp file contents

func (*RDPOpener) StartDefaultClient

func (c *RDPOpener) StartDefaultClient() error

StartDefaultClient starts OS's default RDP client

type SSHClientParams

type SSHClientParams struct {
	DisplayName    string
	UserName       string
	Password       string
	Host           string
	Port           int
	PrivateKeyPath string
	Quiet          bool
	Out            io.Writer
}

SSHClientParams represents SSHClient params

func (*SSHClientParams) TargetHost

func (p *SSHClientParams) TargetHost() string

TargetHost returns hostname as 'host:port'

type SendCommandOption

type SendCommandOption struct {
	UseUSKeyboard  bool
	Debug          bool
	ProgressWriter io.Writer
}

SendCommandOption is the Option value of VNC VNCSendCommand

func NewSendCommandOption

func NewSendCommandOption() *SendCommandOption

NewSendCommandOption returns new SendCommandOption

Jump to

Keyboard shortcuts

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