Documentation
¶
Overview ¶
Code in this file has been adapted from https://github.com/FiloSottile/yubikey-agent/blob/v0.1.6/main.go#L77 released under the above license
Index ¶
- Constants
- Variables
- func Run(a *Agent, socketPath string)
- type Agent
- func (a *Agent) Add(key sshagent.AddedKey) error
- func (a *Agent) AddSSHKey(key crypto.PrivateKey, comment string) error
- func (a *Agent) Close() error
- func (a *Agent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (a *Agent) List() ([]*sshagent.Key, error)
- func (a *Agent) Lock(passphrase []byte) error
- func (a *Agent) Remove(key ssh.PublicKey) error
- func (a *Agent) RemoveAll() error
- func (a *Agent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (a *Agent) SignWithFlags(key ssh.PublicKey, data []byte, flags sshagent.SignatureFlags) (*ssh.Signature, error)
- func (a *Agent) Signers() ([]ssh.Signer, error)
- func (a *Agent) Unlock(passphrase []byte) error
- type PawAgent
- type PawSessionExtendedAgent
- type PawTypeExtendedAgent
- type SSHAgent
- type Session
- type Type
Constants ¶
View Source
const ( // SessionExtension is the Session Extension type for the Paw Agent SessionExtension = "session@paw" // SessionIDPrefix is the prefix of the Paw Session ID SessionIDPrefix = "PAW-SID-" )
View Source
const ( SessionActionLock uint8 = iota SessionActionUnlock SessionActionKey SessionActionList )
View Source
const (
// TypeExtension is the Type Extension type for the Paw Agent
TypeExtension = "type@paw"
)
Variables ¶
View Source
var ErrOperationUnsupported = errors.New("operation unsupported")
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) SignWithFlags ¶
type PawAgent ¶
type PawAgent interface { SSHAgent PawSessionExtendedAgent PawTypeExtendedAgent }
type PawSessionExtendedAgent ¶
type PawSessionExtendedAgent interface { Key(vaultName string, sessionID string) (*paw.Key, error) Lock(vaultName string) error Sessions() ([]Session, error) Unlock(vaultName string, key *paw.Key, lifetime time.Duration) (string, error) }
PawSessionExtendedAgent wraps the method for the Paw agent client to handle sessions
type PawTypeExtendedAgent ¶
PawSessionExtendedAgent wraps the method for the Paw agent client to handle sessions
type SSHAgent ¶
type SSHAgent interface { AddSSHKey(key crypto.PrivateKey, comment string) error RemoveSSHKey(key ssh.PublicKey) error }
SSHAgent wraps the method for the Paw agent client to handle SSH keys
Click to show internal directories.
Click to hide internal directories.