Documentation ¶
Index ¶
- Constants
- Variables
- func NewClient() (agent.ExtendedAgent, error)
- func WithInterrupt(parent context.Context) context.Context
- type LogSignatureFlags
- type SSHAgent
- func (s *SSHAgent) Add(key agent.AddedKey) error
- func (s *SSHAgent) Close()
- func (s *SSHAgent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (s *SSHAgent) List() (keys []*agent.Key, err error)
- func (s *SSHAgent) Lock(passphrase []byte) error
- func (s *SSHAgent) Remove(key ssh.PublicKey) error
- func (s *SSHAgent) RemoveAll() error
- func (s *SSHAgent) Serve(listener net.Listener) error
- func (s *SSHAgent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (s *SSHAgent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (s *SSHAgent) Signers() (out []ssh.Signer, _ error)
- func (s *SSHAgent) Unlock(passphrase []byte) error
- type StringerFunc
Constants ¶
View Source
const EnvSSHAuthSock = "SSH_AUTH_SOCK"
View Source
const ExtensionAge = "decrypt@age-tool.com"
Variables ¶
View Source
var ErrInternal = errors.New("internal error")
View Source
var ErrLocked = errors.New("agent locked")
View Source
var Interrupted = errors.New("context interrupted")
Functions ¶
func NewClient ¶
func NewClient() (agent.ExtendedAgent, error)
Types ¶
type LogSignatureFlags ¶
type LogSignatureFlags agent.SignatureFlags
func (LogSignatureFlags) String ¶
func (lsf LogSignatureFlags) String() string
type SSHAgent ¶
type SSHAgent struct {
// contains filtered or unexported fields
}
func NewSSHAgent ¶
func (*SSHAgent) SignWithFlags ¶
type StringerFunc ¶
type StringerFunc func() string
func (StringerFunc) String ¶
func (s StringerFunc) String() string
Click to show internal directories.
Click to hide internal directories.