mock

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 New

func New() *Mocker

New creates a new GPG mock

func (*Mocker) Decrypt

func (m *Mocker) Decrypt(path string) ([]byte, error)

Decrypt read the file from disk unaltered

func (*Mocker) Encrypt

func (m *Mocker) Encrypt(path string, content []byte, recipients []string) error

Encrypt writes the input to disk unaltered

func (*Mocker) ExportPublicKey

func (m *Mocker) ExportPublicKey(string, string) error

ExportPublicKey does nothing

func (*Mocker) FindPrivateKeys

func (m *Mocker) FindPrivateKeys(...string) (gpg.KeyList, error)

FindPrivateKeys does nothing

func (*Mocker) FindPublicKeys

func (m *Mocker) FindPublicKeys(...string) (gpg.KeyList, error)

FindPublicKeys does nothing

func (*Mocker) GetRecipients

func (m *Mocker) GetRecipients(string) ([]string, error)

GetRecipients does nothing

func (*Mocker) ImportPublicKey

func (m *Mocker) ImportPublicKey(string) error

ImportPublicKey does nothing

func (*Mocker) ListPrivateKeys

func (m *Mocker) ListPrivateKeys() (gpg.KeyList, error)

ListPrivateKeys does nothing

func (*Mocker) ListPublicKeys

func (m *Mocker) ListPublicKeys() (gpg.KeyList, error)

ListPublicKeys does nothing

func (*Mocker) Version

func (m *Mocker) Version() semver.Version

Version returns dummy version info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL