openssh

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSystemSSHVersion

func GetSystemSSHVersion() (*semver.Version, error)

GetSystemSSHVersion attempts to query the system SSH for its current version.

Types

type SSHConfig

type SSHConfig struct {
	// contains filtered or unexported fields
}

func NewSSHConfig

func NewSSHConfig(getSSHVersion func() (*semver.Version, error), log logrus.FieldLogger) *SSHConfig

NewSSHConfig creates a SSHConfig initialized with provided values or defaults otherwise.

func (*SSHConfig) GetSSHConfig

func (c *SSHConfig) GetSSHConfig(sb *strings.Builder, config *SSHConfigParameters) error

type SSHConfigApps

type SSHConfigApps string

SSHConfigApps represent apps that support ssh config generation.

type SSHConfigParameters

type SSHConfigParameters struct {
	AppName             SSHConfigApps
	ClusterNames        []string
	KnownHostsPath      string
	IdentityFilePath    string
	CertificateFilePath string
	ProxyHost           string
	ProxyPort           string
	ExecutablePath      string
	Username            string
	DestinationDir      string
	// Port is the node port to use, defaulting to 3022, if not specified by flag
	Port int
}

SSHConfigParameters is a set of SSH related parameters used to generate ~/.ssh/config file.

Jump to

Keyboard shortcuts

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