gpg

package
v0.0.0-...-12b6483 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GPG                           = "gpg"
	GPG_BATCH_OPTION              = "--batch"
	GPG_DECRYPT_OPTION            = "--decrypt"
	GPG_KEYRING_OPTION            = "--keyring"
	GPG_NO_DEFAULT_KEYRING_OPTION = "--no-default-keyring"
	GPG_OUTPUT_OPTION             = "--output"
	GPG_YES_OPTION                = "--yes"
	GPG_DEFAULT_KEYRING_PATH      = "" // TODO: Get this value from configuration
)

Variables

This section is empty.

Functions

func IsSignatureValid

func IsSignatureValid(signedFilePath string, outputFilePath string, keyrings []string) (bool, error)

Verifies a files's signature

Types

type GpgExecuteError

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

func NewGpgExecuteError

func NewGpgExecuteError(message string) *GpgExecuteError

func (*GpgExecuteError) Error

func (err *GpgExecuteError) Error() string

type KeyringNotConfiguredError

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

func NewKeyringNotConfiguredError

func NewKeyringNotConfiguredError(message string) *KeyringNotConfiguredError

func (*KeyringNotConfiguredError) Error

func (err *KeyringNotConfiguredError) Error() string

Jump to

Keyboard shortcuts

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