decrypt

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongGPGPassword

func IsWrongGPGPassword(err error) bool

IsWrongGPGPassword asserts wrongGPGPassword.

Types

type Config

type Config struct {

	// Pass is the passphrase used to decrypt GPG messages.
	Pass string
}

Config represents the configuration used to create a new GPG decryption value modifier.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new GPG decryption decoding value modifier by best effort.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements the GPG decryption value modifier.

func New

func New(config Config) (*Service, error)

New creates a new configured GPG decryption value modifier.

func (*Service) Modify

func (s *Service) Modify(value []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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