Versions in this module Expand all Collapse all v1 v1.12.9 Oct 4, 2021 Changes in this version + const Ext + const IDFile + const Name + type Mocker struct + func New() *Mocker + func (m *Mocker) Binary() string + func (m *Mocker) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error) + func (m *Mocker) Encrypt(ctx context.Context, content []byte, recipients []string) ([]byte, error) + func (m *Mocker) ExportPublicKey(context.Context, string) ([]byte, error) + func (m *Mocker) Ext() string + func (m *Mocker) FindIdentities(ctx context.Context, keys ...string) ([]string, error) + func (m *Mocker) FindRecipients(ctx context.Context, keys ...string) ([]string, error) + func (m *Mocker) Fingerprint(ctx context.Context, id string) string + func (m *Mocker) FormatKey(ctx context.Context, id, tpl string) string + func (m *Mocker) GenerateIdentity(ctx context.Context, name, email, pw string) error + func (m *Mocker) IDFile() string + func (m *Mocker) ImportPublicKey(context.Context, []byte) error + func (m *Mocker) Initialized(context.Context) error + func (m *Mocker) ListIdentities(context.Context) ([]string, error) + func (m *Mocker) ListRecipients(context.Context) ([]string, error) + func (m *Mocker) Name() string + func (m *Mocker) ReadNamesFromKey(ctx context.Context, buf []byte) ([]string, error) + func (m *Mocker) RecipientIDs(context.Context, []byte) ([]string, error) + func (m *Mocker) Version(context.Context) semver.Version