test

package
v0.0.0-...-0ef6a52 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeytoSSHAgent

func AddKeytoSSHAgent(key agent.AddedKey, s string)

AddKeytoSSHAgent Adds a private key to the ssh agent

func RemoveKeyfromSSHAgent

func RemoveKeyfromSSHAgent(key ssh.PublicKey, s string)

RemoveKeyfromSSHAgent Removes a key from the ssh agent

func SetupSSHAgent

func SetupSSHAgent(socketFile string)

SetupSSHAgent Setup and SSH agent for tests

func StartSSHServerForSSH

func StartSSHServerForSSH(publicKeys map[string]ssh.PublicKey)

StartSSHServerForSSH Starts SSH server for ssh tests

func StartSSHServerForScp

func StartSSHServerForScp(publicKeys map[string]ssh.PublicKey)

StartSSHServerForScp Starts SSH server for scp tests

Types

type MockSSHKey

type MockSSHKey struct {
	Keyname string
	Content []byte
	Privkey agent.AddedKey
	Pubkey  ssh.PublicKey
}

MockSSHKey Mock SSH key for tests

Jump to

Keyboard shortcuts

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