agent

package
v0.0.0-...-dfc6acd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyring

type Keyring struct {
	Agent sshagent.Agent
}

func NewAgent

func NewAgent() *Keyring

func (*Keyring) AddKey

func (k *Keyring) AddKey(pubkey string) (*Keyring, error)

func (*Keyring) CheckKey

func (k *Keyring) CheckKey(pubkey string) error

func (*Keyring) GetAgent

func (k *Keyring) GetAgent() ssh.AuthMethod

func (*Keyring) RemoveKey

func (k *Keyring) RemoveKey(key ssh.PublicKey) error

RemoveKey removes an existing key from keyring

func (*Keyring) RemoveKeyUsingFile

func (k *Keyring) RemoveKeyUsingFile(pubkey string) error

RemoveKeyUsingFile removes an existing key from keyring given a file

Jump to

Keyboard shortcuts

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