Documentation
¶
Index ¶
- func AddOpenSSHIdentities(identities *[]age.Identity)
- func ErrorWithHint(error string, hints ...string)
- func Errorf(format string, v ...interface{})
- func IdentitiesToRecipients(ids []age.Identity) ([]age.Recipient, error)
- func LogFatalf(format string, v ...interface{})
- func NewLazyOpener(name string, overwrite bool) io.WriteCloser
- func ParseIdentitiesFile(name string, stdinInUse bool) ([]age.Identity, error)
- func ParseRecipient(arg string) (age.Recipient, error)
- func ParseRecipientsFile(name string, stdinInUse bool) ([]age.Recipient, error)
- func ParseSSHIdentity(name string, pemBytes []byte) ([]age.Identity, error)
- func PassphrasePrompt() (string, error)
- func RandomWord() string
- func ReadPassphrase(prompt string) ([]byte, error)
- func Warningf(format string, v ...interface{})
- type EncryptedIdentity
- type GitHubRecipientError
- type LazyScryptIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOpenSSHIdentities ¶
func ErrorWithHint ¶
func IdentitiesToRecipients ¶
func NewLazyOpener ¶
func NewLazyOpener(name string, overwrite bool) io.WriteCloser
func ParseIdentitiesFile ¶
ParseIdentitiesFile parses a file that contains age or SSH keys. It returns one or more of *age.X25519Identity, *agessh.RSAIdentity, *agessh.Ed25519Identity, *agessh.EncryptedSSHIdentity, or *EncryptedIdentity.
func ParseRecipientsFile ¶
func PassphrasePrompt ¶
func RandomWord ¶
func RandomWord() string
func ReadPassphrase ¶
ReadPassphrase reads a passphrase from the terminal. It does not read from a non-terminal stdin, so it does not check stdinInUse.
Types ¶
type EncryptedIdentity ¶
type EncryptedIdentity struct { Contents []byte Passphrase func() (string, error) NoMatchWarning func() // contains filtered or unexported fields }
func (*EncryptedIdentity) Recipients ¶
func (i *EncryptedIdentity) Recipients() ([]age.Recipient, error)
type GitHubRecipientError ¶
type GitHubRecipientError struct {
// contains filtered or unexported fields
}
func (GitHubRecipientError) Error ¶
func (GitHubRecipientError) Error() string
func (GitHubRecipientError) Username ¶
func (g GitHubRecipientError) Username() string
Click to show internal directories.
Click to hide internal directories.