Versions in this module Expand all Collapse all v0 v0.0.2 Jan 24, 2023 Changes in this version + const ErrSignerNotFound + type Agent struct + func NewAgent() (*Agent, func() error, error) + func (a *Agent) GetSignerMatchingPublicKey(pubKey PublicKey) (ssh.Signer, error) + func (a *Agent) RemoveMatchingPublicKey(pubKey PublicKey) error + func (a *Agent) UpsertCertificate(privateKey PrivateKey, cert Certificate) error + func (a *Agent) UpsertKey(privateKey PrivateKey) error + type Certificate ssh.Certificate + func NewCertificateFromOpenSSHAuthorizedKeyBytes(raw []byte) (*Certificate, error) + func NewCertificateFromOpenSSHAuthorizedKeyFile(filePath string) (*Certificate, error) + func (c Certificate) IsValid() error + type Client struct + func NewClient(cfg *ClientConfig) (*Client, error) + func (c *Client) CheckLivenessUntilNotAlive(ctx context.Context, aliveCheckInterval time.Duration, notAliveCountExit uint) error + func (c *Client) Close() error + func (c *Client) IsAlive() error + type ClientConfig struct + Addr string + Bridge *ClientConfig + SSHClientConfig ssh.ClientConfig + func (cfg *ClientConfig) Validate() error + type PrivateKey interface + Equal func(PrivateKey) error + PublicKey func() PublicKey + Raw func() crypto.PrivateKey + Signer func() ssh.Signer + func NewPrivateKeyFromPEMBytes(raw []byte, passphraseGetter func() ([]byte, error)) (PrivateKey, error) + func NewPrivateKeyFromPEMFile(filePath string, passphraseGetter func() ([]byte, error)) (PrivateKey, error) + func WrapPrivateKey(cryptoPrivKey crypto.PrivateKey) (PrivateKey, error) + type PublicKey interface + Equal func(PublicKey) error + Raw func() crypto.PublicKey + String func() string + func NewPublicKeyFromOpenSSHAuthorizedKeyBytes(raw []byte) (PublicKey, error) + func NewPublicKeyFromOpenSSHAuthorizedKeyFile(filePath string) (PublicKey, error) + func WrapSSHPublicKey(sshPublicKey ssh.PublicKey) PublicKey v0.0.1 Dec 8, 2022