Documentation ¶
Index ¶
- func CreateSSHClient(params *SSHClientParams) (*ssh.Client, error)
- func GetDefaultUserName(client *api.Client, serverID sacloud.ID) (string, error)
- func StartDefaultVNCClient(vncProxyInfo *sacloud.VNCProxyResponse) error
- func VNCSendCommand(vncProxyInfo *sacloud.VNCProxyResponse, command string, ...) error
- type RDPOpener
- type SSHClientParams
- type SendCommandOption
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 ¶
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 ¶
RDPOpener information of RDP connection
func (*RDPOpener) RDPFileContent ¶
RDPFileContent represents .rdp file contents
func (*RDPOpener) StartDefaultClient ¶
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 ¶
SendCommandOption is the Option value of VNC VNCSendCommand
func NewSendCommandOption ¶
func NewSendCommandOption() *SendCommandOption
NewSendCommandOption returns new SendCommandOption
Click to show internal directories.
Click to hide internal directories.