ssh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const HostConfigTemplate = `` /* 260-byte string literal not displayed */

Variables

This section is empty.

Functions

func AddSSHConfig

func AddSSHConfig(jobID int64, ipAddress string) error

func AttachToTmuxSession

func AttachToTmuxSession(jobID int64) error

func DeleteSSHConfig

func DeleteSSHConfig(jobID int64) error

func EnsureSSHIncludeConfig

func EnsureSSHIncludeConfig() error

Verify that the $HOME/.ssh/config file imports everything from the config.d dir We'll add/remove config for each server by adding/removing files in this dir

func GetOrCreateSSHKeyPair

func GetOrCreateSSHKeyPair() (string, error)

Creates a new keypair that will be used to auth with all servers

func StreamLogs

func StreamLogs(jobID int64) error

func WaitForSSHConnection

func WaitForSSHConnection(jobID int64) error

Types

type HostConfig

type HostConfig struct {
	JobID        int64
	IPAddress    string
	IdentityFile string
}

Jump to

Keyboard shortcuts

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