ssh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDebugJobSession

func StartDebugJobSession(debug *models.DebugJobV1Alpha, message string) error

func StartDebugProjectSession

func StartDebugProjectSession(debug_project *models.DebugProjectV1Alpha, message string) error

func StartDebugSession

func StartDebugSession(job *models.JobV1Alpha, message string) error

Types

type Connection

type Connection struct {
	IP         string
	Port       int32
	Username   string
	SSHKeyFile *os.File
}

func NewConnection

func NewConnection(ip string, port int32, username string, sshKey string) (*Connection, error)

func NewConnectionForJob

func NewConnectionForJob(job *models.JobV1Alpha, sshKeyPath string) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) IsReady

func (c *Connection) IsReady() (bool, error)

func (*Connection) Session

func (c *Connection) Session() error

func (*Connection) WaitUntilReady

func (c *Connection) WaitUntilReady(attempts int, callback func()) error

Jump to

Keyboard shortcuts

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