Documentation ¶
Index ¶
- func DefaultPrincipal() string
- func Doctor()
- func NewSigningKeyring(vaultSigningUrl string, username string, exposeUnsigned bool) (agent.ExtendedAgent, error)
- func SetupAgent(config AgentConfig) (agent.Agent, error)
- type AgentConfig
- type KeyPair
- type ProxyKeyring
- func (pk *ProxyKeyring) Add(key agent.AddedKey) error
- func (pk *ProxyKeyring) Close()
- func (pk *ProxyKeyring) Extension(extensionType string, contents []byte) ([]byte, error)
- func (pk *ProxyKeyring) List() ([]*agent.Key, error)
- func (pk *ProxyKeyring) Lock(passphrase []byte) error
- func (pk *ProxyKeyring) Remove(key ssh.PublicKey) error
- func (pk *ProxyKeyring) RemoveAll() error
- func (pk *ProxyKeyring) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (pk *ProxyKeyring) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (pk *ProxyKeyring) Signers() ([]ssh.Signer, error)
- func (pk *ProxyKeyring) Unlock(passphrase []byte) error
- type Server
- type Spawn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPrincipal ¶ added in v0.3.0
func DefaultPrincipal() string
DefaultPrincipal returns the username of the user that invoked the calling process
func NewSigningKeyring ¶
func SetupAgent ¶
func SetupAgent(config AgentConfig) (agent.Agent, error)
Types ¶
type AgentConfig ¶
type KeyPair ¶
func GenerateRSAKeyPair ¶
type ProxyKeyring ¶
type ProxyKeyring struct {
// contains filtered or unexported fields
}
func NewProxyKeyring ¶
func NewProxyKeyring(keyring agent.ExtendedAgent, upstream agent.ExtendedAgent) *ProxyKeyring
func (*ProxyKeyring) Close ¶
func (pk *ProxyKeyring) Close()
TODO: should we consider closing upstream here as well?
func (*ProxyKeyring) Extension ¶
func (pk *ProxyKeyring) Extension(extensionType string, contents []byte) ([]byte, error)
func (*ProxyKeyring) Lock ¶
func (pk *ProxyKeyring) Lock(passphrase []byte) error
func (*ProxyKeyring) RemoveAll ¶
func (pk *ProxyKeyring) RemoveAll() error
func (*ProxyKeyring) SignWithFlags ¶
func (pk *ProxyKeyring) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
func (*ProxyKeyring) Unlock ¶
func (pk *ProxyKeyring) Unlock(passphrase []byte) error
type Server ¶
func (*Server) GetProxyEnvVars ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.