janus

package
v0.0.0-...-f5cba4f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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)

func WithInterrupt

func WithInterrupt(parent context.Context) context.Context

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 NewSSHAgent(logger *zap.Logger) *SSHAgent

func (*SSHAgent) Add

func (s *SSHAgent) Add(key agent.AddedKey) error

func (*SSHAgent) Close

func (s *SSHAgent) Close()

func (*SSHAgent) Extension

func (s *SSHAgent) Extension(extensionType string, contents []byte) ([]byte, error)

func (*SSHAgent) List

func (s *SSHAgent) List() (keys []*agent.Key, err error)

func (*SSHAgent) Lock

func (s *SSHAgent) Lock(passphrase []byte) error

func (*SSHAgent) Remove

func (s *SSHAgent) Remove(key ssh.PublicKey) error

func (*SSHAgent) RemoveAll

func (s *SSHAgent) RemoveAll() error

func (*SSHAgent) Serve

func (s *SSHAgent) Serve(listener net.Listener) error

func (*SSHAgent) Sign

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

func (*SSHAgent) SignWithFlags

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

func (*SSHAgent) Signers

func (s *SSHAgent) Signers() (out []ssh.Signer, _ error)

func (*SSHAgent) Unlock

func (s *SSHAgent) Unlock(passphrase []byte) error

type StringerFunc

type StringerFunc func() string

func (StringerFunc) String

func (s StringerFunc) String() string

Jump to

Keyboard shortcuts

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