crypto

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: 4 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 interface {
	Configure(arguments map[string]interface{}) (err error)
	Encrypt(in io.Reader) (out io.Reader, err error)
	Comments() string
	GetConfiguration() interface{}
}

Backend interface describe methods that the different types of crypto backend must implement to work.

func NewCryptoBackend

func NewCryptoBackend(name string, config map[string]interface{}) (backend Backend, err error)

NewCryptoBackend instantiate the wanted archive backend with the name provided in configuration file We are passing its configuration found in .plikrc file or arguments

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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