steelcut

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSSHKeyManager

type AgentSSHKeyManager struct{}

AgentSSHKeyManager is an implementation of SSHKeyManager that reads SSH keys from an SSH agent.

func (AgentSSHKeyManager) ReadPrivateKeys

func (km AgentSSHKeyManager) ReadPrivateKeys(_ string) ([]ssh.Signer, error)

ReadPrivateKeys reads private keys from the SSH agent.

type FileSSHKeyManager

type FileSSHKeyManager struct{}

FileSSHKeyManager is an implementation of SSHKeyManager that reads SSH keys from disk.

func (FileSSHKeyManager) ReadPrivateKeys

func (km FileSSHKeyManager) ReadPrivateKeys(keyPassphrase string) ([]ssh.Signer, error)

ReadPrivateKeys reads private keys from the user's home directory.

type SSHKeyManager

type SSHKeyManager interface {
	ReadPrivateKeys(keyPassphrase string) ([]ssh.Signer, error)
}

SSHKeyManager is an interface that defines methods for reading private SSH keys.

Jump to

Keyboard shortcuts

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