sshagent

package
v0.0.0-...-2db412b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOperationUnsupported = errors.New("operation unsupported")
	ErrNoPrivateKey         = errors.New("no private key")
)
View Source
var (
	ErrPINNotFound = errors.New("pin not found")
)

Functions

This section is empty.

Types

type Actions

type Actions struct {
	BeforeSignHook string
}

type SSHAgent

type SSHAgent struct {
	// contains filtered or unexported fields
}

func New

func New(serial uint32, log *logrus.Logger, action Actions) (*SSHAgent, error)

func (*SSHAgent) Add

func (a *SSHAgent) Add(_ agent.AddedKey) error

func (*SSHAgent) Close

func (a *SSHAgent) Close() error

func (*SSHAgent) Extension

func (a *SSHAgent) Extension(_ string, _ []byte) ([]byte, error)

func (*SSHAgent) List

func (a *SSHAgent) List() ([]*agent.Key, error)

func (*SSHAgent) ListenAndServe

func (a *SSHAgent) ListenAndServe(ctx context.Context, socketPath string) error

func (*SSHAgent) Lock

func (a *SSHAgent) Lock(_ []byte) error

func (*SSHAgent) Remove

func (a *SSHAgent) Remove(_ ssh.PublicKey) error

func (*SSHAgent) RemoveAll

func (a *SSHAgent) RemoveAll() error

func (*SSHAgent) Shutdown

func (a *SSHAgent) Shutdown() error

func (*SSHAgent) Sign

func (a *SSHAgent) Sign(reqKey ssh.PublicKey, data []byte) (*ssh.Signature, error)

func (*SSHAgent) SignWithFlags

func (a *SSHAgent) SignWithFlags(reqKey ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)

func (*SSHAgent) Signers

func (a *SSHAgent) Signers() ([]ssh.Signer, error)

func (*SSHAgent) Unlock

func (a *SSHAgent) Unlock(_ []byte) error

type Temporary

type Temporary interface {
	Temporary() bool
}

Jump to

Keyboard shortcuts

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