Documentation ¶
Index ¶
- Variables
- func Run()
- func RunReset(yk *piv.YubiKey)
- func RunSetup(yk *piv.YubiKey)
- type Agent
- func (a *Agent) Add(key agent.AddedKey) error
- func (a *Agent) Close() error
- func (a *Agent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (a *Agent) List() ([]*agent.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 agent.SignatureFlags) (*ssh.Signature, error)
- func (a *Agent) Signers() ([]ssh.Signer, error)
- func (a *Agent) Unlock(passphrase []byte) error
- type Yubi
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOperationUnsupported = errors.New("operation unsupported")
View Source
var Version string
Version can be set at link time to override debug.BuildInfo.Main.Version, which is "(devel)" when building from within the module. See golang.org/issue/29814 and golang.org/issue/29228.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent holds status of the current agent in use and all yubikeys associated with it
func (*Agent) SignWithFlags ¶
type Yubi ¶
Yubi contains all the information about a YubiKey
func LoadYubiKeys ¶
LoadYubiKeys load all connected YubiKeys, it's possible to filter and load only one passing the serial
Click to show internal directories.
Click to hide internal directories.