openssh

package
v1.2.3-fred.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 11 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
	ExecutablePath      string
	DestinationDir      string
}

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