Documentation ¶
Index ¶
- type Mocker
- func (m *Mocker) Binary() string
- func (m *Mocker) CreatePrivateKey(ctx context.Context) error
- func (m *Mocker) CreatePrivateKeyBatch(ctx context.Context, name, email, pw string) error
- func (m *Mocker) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)
- func (m *Mocker) EmailFromKey(context.Context, string) string
- 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) FindPrivateKeys(ctx context.Context, keys ...string) ([]string, error)
- func (m *Mocker) FindPublicKeys(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 string) string
- func (m *Mocker) IDFile() string
- func (m *Mocker) ImportPublicKey(context.Context, []byte) error
- func (m *Mocker) Initialized(context.Context) error
- func (m *Mocker) ListPrivateKeyIDs(context.Context) ([]string, error)
- func (m *Mocker) ListPublicKeyIDs(context.Context) ([]string, error)
- func (m *Mocker) Name() string
- func (m *Mocker) NameFromKey(context.Context, string) string
- func (m *Mocker) ReadNamesFromKey(ctx context.Context, buf []byte) ([]string, error)
- func (m *Mocker) RecipientIDs(context.Context, []byte) ([]string, error)
- func (m *Mocker) Sign(ctx context.Context, in string, sigf string) error
- func (m *Mocker) Verify(ctx context.Context, sigf string, in string) error
- func (m *Mocker) Version(context.Context) semver.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mocker ¶
type Mocker struct{}
Mocker is a no-op GPG mock
func (*Mocker) CreatePrivateKey ¶
CreatePrivateKey is not implemented
func (*Mocker) CreatePrivateKeyBatch ¶
CreatePrivateKeyBatch is not implemented
func (*Mocker) EmailFromKey ¶
EmailFromKey returns nothing
func (*Mocker) ExportPublicKey ¶
ExportPublicKey does nothing
func (*Mocker) FindPrivateKeys ¶
FindPrivateKeys does nothing
func (*Mocker) FindPublicKeys ¶
FindPublicKeys does nothing
func (*Mocker) Fingerprint ¶
Fingerprint returns the full-length native fingerprint
func (*Mocker) ImportPublicKey ¶
ImportPublicKey does nothing
func (*Mocker) Initialized ¶
Initialized returns nil
func (*Mocker) ListPrivateKeyIDs ¶
ListPrivateKeyIDs does nothing
func (*Mocker) ListPublicKeyIDs ¶
ListPublicKeyIDs does nothing
func (*Mocker) NameFromKey ¶
NameFromKey returns nothing
func (*Mocker) ReadNamesFromKey ¶
ReadNamesFromKey does nothing
func (*Mocker) RecipientIDs ¶
RecipientIDs does nothing
Click to show internal directories.
Click to hide internal directories.