Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertKey(Key interface{}, password string) (interface{}, error)
- func LoadConfig() error
- type C
- type Consumer
- type CustomAgent
- func (k *CustomAgent) Add(key agent.AddedKey) error
- func (k *CustomAgent) AddInternal(key interface{}, comment string, priority int, password string) error
- func (k *CustomAgent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (k *CustomAgent) List() ([]*agent.Key, error)
- func (k *CustomAgent) Lock(passphrase []byte) error
- func (k *CustomAgent) Remove(key ssh.PublicKey) error
- func (k *CustomAgent) RemoveAll() error
- func (k *CustomAgent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (k *CustomAgent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (k *CustomAgent) Signers() ([]ssh.Signer, error)
- func (k *CustomAgent) Unlock(passphrase []byte) error
- type D
- type PlainKey
- type Prompt
- type PromptConfig
- type Supplier
Constants ¶
View Source
const (
CacheSubfolder = "ssh-bridge"
)
Variables ¶
View Source
var (
CacheDirectory string
)
Functions ¶
func ConvertKey ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type CustomAgent ¶
type CustomAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(load loadKeysFunction) *CustomAgent
func (*CustomAgent) AddInternal ¶
func (k *CustomAgent) AddInternal(key interface{}, comment string, priority int, password string) error
func (*CustomAgent) Extension ¶
func (k *CustomAgent) Extension(extensionType string, contents []byte) ([]byte, error)
func (*CustomAgent) Lock ¶
func (k *CustomAgent) Lock(passphrase []byte) error
func (*CustomAgent) RemoveAll ¶
func (k *CustomAgent) RemoveAll() error
func (*CustomAgent) SignWithFlags ¶
func (k *CustomAgent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
func (*CustomAgent) Unlock ¶
func (k *CustomAgent) Unlock(passphrase []byte) error
type PromptConfig ¶
Click to show internal directories.
Click to hide internal directories.