ssh

package
v0.0.0-...-71ad85e Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(vs *vssh.VSSH, path string) error

func GetMacAddresses

func GetMacAddresses(vs *vssh.VSSH, networkInterfaces *[]NetworkInterfaces) (err error)

func LineToList

func LineToList(content string) *[]string

func ListNetworkInterfaces

func ListNetworkInterfaces(vs *vssh.VSSH) (*[]NetworkInterfaces, error)

func New

func New(user, password, addr string, port uint16) (vs *vssh.VSSH, err error)

func RestartVM

func RestartVM(vs *vssh.VSSH) error

func WriteToFile

func WriteToFile(vs *vssh.VSSH, filePath string, content *[]string) (err error)

Types

type NetworkInterfaces

type NetworkInterfaces struct {
	Name string
	Mac  string
}

type Response

type Response struct {
	OutTxt   string
	ErrText  string
	Exitcode int
	Err      error
}

Jump to

Keyboard shortcuts

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