Versions in this module Expand all Collapse all v0 v0.3.7 Jan 11, 2024 v0.3.6 Jun 6, 2023 Changes in this version + const LocalStore + func CheckKeyType(filePath string, passPhrase string) (*sshkey.PrivateKeyFile, error) + func JSONDump(data interface{}) string + func LoadKeyfile(filePath string, passPhrase string) (*sshkey.PrivateKeyFile, *agent.AddedKey, error) + type KeyRing struct + NotifyCallback func(action string, data interface{}) + func NewKeyRing(s *store.Settings) *KeyRing + func (k *KeyRing) Add(key agent.AddedKey) error + func (k *KeyRing) AddKey(keyID string) error + func (k *KeyRing) AddKeySettings(key sshkey.PrivateKeyFile) (string, error) + func (k *KeyRing) AddKeys() error + func (k *KeyRing) DeleteKeySettings(sha256 string) error + func (k *KeyRing) Extension(extensionType string, contents []byte) ([]byte, error) + func (k *KeyRing) KeyList() ([]sshkey.PrivateKeyFile, error) + func (k *KeyRing) List() ([]*agent.Key, error) + func (k *KeyRing) Lock(passphrase []byte) error + func (k *KeyRing) Remove(key ssh.PublicKey) error + func (k *KeyRing) RemoveAll() error + func (k *KeyRing) RemoveKey(sha256 string) error + func (k *KeyRing) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error) + func (k *KeyRing) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error) + func (k *KeyRing) Signers() ([]ssh.Signer, error) + func (k *KeyRing) Unlock(passphrase []byte) error