sshutils

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScalerServerSSH

type AutoScalerServerSSH struct {
	UserName              string `json:"user"`
	Password              string `json:"password"`
	AuthKeys              string `json:"ssh-private-key"`
	WaitSshReadyInSeconds int    `default:180 json:"wait-ssh-ready-seconds"`
	// contains filtered or unexported fields
}

AutoScalerServerSSH contains ssh client infos

func (*AutoScalerServerSSH) GetAuthKeys

func (ssh *AutoScalerServerSSH) GetAuthKeys() string

GetAuthKeys returns the path to key file, subsistute ~

func (*AutoScalerServerSSH) GetMode

func (ssh *AutoScalerServerSSH) GetMode() bool

func (*AutoScalerServerSSH) GetUserName

func (ssh *AutoScalerServerSSH) GetUserName() string

GetUserName returns user name from config or the real current username is empty or equal to ~

func (*AutoScalerServerSSH) SetMode

func (ssh *AutoScalerServerSSH) SetMode(test bool)

Jump to

Keyboard shortcuts

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