service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSSHKey

func GenerateSSHKey() (string, string, error)

func RSAAuthMethod

func RSAAuthMethod(priKey string) (ssh.AuthMethod, error)

Types

type SSHClient

type SSHClient struct {
	*ssh.Client
	*ssh.Session
	WorkDir string
}

func NewSSHClient

func NewSSHClient(user, endporint, priKey string) (*SSHClient, error)

func (*SSHClient) Close

func (s *SSHClient) Close()

Jump to

Keyboard shortcuts

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