Documentation ¶
Index ¶
- type Mocker
- func (m *Mocker) Binary() string
- func (m *Mocker) Decrypt(ctx context.Context, path string) ([]byte, error)
- func (m *Mocker) Encrypt(ctx context.Context, path string, content []byte, recipients []string) error
- func (m *Mocker) ExportPublicKey(context.Context, string, string) error
- func (m *Mocker) FindPrivateKeys(context.Context, ...string) (gpg.KeyList, error)
- func (m *Mocker) FindPublicKeys(context.Context, ...string) (gpg.KeyList, error)
- func (m *Mocker) GetRecipients(context.Context, string) ([]string, error)
- func (m *Mocker) ImportPublicKey(context.Context, string) error
- func (m *Mocker) ListPrivateKeys(context.Context) (gpg.KeyList, error)
- func (m *Mocker) ListPublicKeys(context.Context) (gpg.KeyList, 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) Encrypt ¶
func (m *Mocker) Encrypt(ctx context.Context, path string, content []byte, recipients []string) error
Encrypt writes the input to disk unaltered
func (*Mocker) ExportPublicKey ¶
ExportPublicKey does nothing
func (*Mocker) FindPrivateKeys ¶
FindPrivateKeys does nothing
func (*Mocker) FindPublicKeys ¶
FindPublicKeys does nothing
func (*Mocker) GetRecipients ¶
GetRecipients does nothing
func (*Mocker) ImportPublicKey ¶
ImportPublicKey does nothing
func (*Mocker) ListPrivateKeys ¶
ListPrivateKeys does nothing
func (*Mocker) ListPublicKeys ¶
ListPublicKeys does nothing
Click to show internal directories.
Click to hide internal directories.