pgp

package
v0.0.0-...-233af93 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Config *Config
}

Backend object

func NewPgpBackend

func NewPgpBackend(config map[string]interface{}) (pb *Backend)

NewPgpBackend instantiate a new PGP Crypto Backend and configure it from config map

func (*Backend) Comments

func (pb *Backend) Comments() string

Comments implementation for PGP Crypto Backend

func (*Backend) Configure

func (pb *Backend) Configure(arguments map[string]interface{}) (err error)

Configure implementation for PGP Crypto Backend

func (*Backend) Encrypt

func (pb *Backend) Encrypt(in io.Reader) (out io.Reader, err error)

Encrypt implementation for PGP Crypto Backend

func (*Backend) GetConfiguration

func (pb *Backend) GetConfiguration() interface{}

GetConfiguration implementation for PGP Crypto Backend

type Config

type Config struct {
	Gpg       string
	Keyring   string
	Recipient string
	Email     string
	Entity    *openpgp.Entity
}

Config object

func NewPgpBackendConfig

func NewPgpBackendConfig(params map[string]interface{}) (config *Config)

NewPgpBackendConfig instantiate a new Backend Configuration from config map passed as argument

Jump to

Keyboard shortcuts

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