sshagent

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterCertificateEKU added in v1.0.3

func FilterCertificateEKU(cert *capi.Certificate) bool

Types

type CAPIAgent

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

func (*CAPIAgent) Add

func (*CAPIAgent) Add(key agent.AddedKey) error

func (*CAPIAgent) Close added in v1.0.1

func (s *CAPIAgent) Close() (err error)

func (*CAPIAgent) Extension

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

func (*CAPIAgent) List

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

func (*CAPIAgent) Lock

func (*CAPIAgent) Lock(passphrase []byte) error

func (*CAPIAgent) Remove

func (*CAPIAgent) Remove(key ssh.PublicKey) error

func (*CAPIAgent) RemoveAll

func (*CAPIAgent) RemoveAll() error

func (*CAPIAgent) Sign

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

func (*CAPIAgent) SignWithFlags

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

func (*CAPIAgent) Signers

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

func (*CAPIAgent) Unlock

func (*CAPIAgent) Unlock(passphrase []byte) error

type HVAgent added in v1.1.0

type HVAgent struct {
}

func NewHVAgent added in v1.1.0

func NewHVAgent() *HVAgent

func (*HVAgent) Add added in v1.1.0

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

func (*HVAgent) List added in v1.1.0

func (s *HVAgent) List() ([]*agent.Key, error)

func (*HVAgent) Lock added in v1.1.0

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

func (*HVAgent) Remove added in v1.1.0

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

func (*HVAgent) RemoveAll added in v1.1.0

func (s *HVAgent) RemoveAll() error

func (*HVAgent) Sign added in v1.1.0

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

func (*HVAgent) Signers added in v1.1.0

func (s *HVAgent) Signers() ([]ssh.Signer, error)

func (*HVAgent) Unlock added in v1.1.0

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

type KeyRingAgent added in v1.1.6

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

func NewKeyRingAgent added in v1.1.6

func NewKeyRingAgent() *KeyRingAgent

func (*KeyRingAgent) Add added in v1.1.6

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

func (*KeyRingAgent) Extension added in v1.1.6

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

func (*KeyRingAgent) List added in v1.1.6

func (s *KeyRingAgent) List() ([]*agent.Key, error)

func (*KeyRingAgent) Lock added in v1.1.6

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

func (*KeyRingAgent) Remove added in v1.1.6

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

func (*KeyRingAgent) RemoveAll added in v1.1.6

func (s *KeyRingAgent) RemoveAll() error

func (*KeyRingAgent) Sign added in v1.1.6

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

func (*KeyRingAgent) SignWithFlags added in v1.1.6

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

func (*KeyRingAgent) Signers added in v1.1.6

func (s *KeyRingAgent) Signers() ([]ssh.Signer, error)

func (*KeyRingAgent) Unlock added in v1.1.6

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

type Server

type Server struct {
	Agent agent.Agent
}

func (*Server) SSHAgentHandler

func (s *Server) SSHAgentHandler(conn io.ReadWriteCloser)

type WrappedAgent added in v1.1.6

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

func NewWrappedAgent added in v1.1.6

func NewWrappedAgent(defaultAgent agent.Agent, others []agent.Agent) *WrappedAgent

func (*WrappedAgent) Add added in v1.1.6

func (a *WrappedAgent) Add(key agent.AddedKey) error

func (*WrappedAgent) Extension added in v1.1.6

func (a *WrappedAgent) Extension(extensionType string, contents []byte) ([]byte, error)

func (*WrappedAgent) List added in v1.1.6

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

func (*WrappedAgent) Lock added in v1.1.6

func (a *WrappedAgent) Lock(passphrase []byte) error

func (*WrappedAgent) Remove added in v1.1.6

func (a *WrappedAgent) Remove(key ssh.PublicKey) error

func (*WrappedAgent) RemoveAll added in v1.1.6

func (a *WrappedAgent) RemoveAll() error

func (*WrappedAgent) Sign added in v1.1.6

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

func (*WrappedAgent) SignWithFlags added in v1.1.6

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

func (*WrappedAgent) Signers added in v1.1.6

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

func (*WrappedAgent) Unlock added in v1.1.6

func (a *WrappedAgent) Unlock(passphrase []byte) error

Jump to

Keyboard shortcuts

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