gnupg

package
v0.465.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSignatureValid

func CheckSignatureValid(ctx context.Context, signatureFile filesinterfaces.File) (err error)

func SignFile

func SignFile(ctx context.Context, fileToSign filesinterfaces.File, options *GnuPGSignOptions) (err error)

Types

type GnuPGSignOptions

type GnuPGSignOptions struct {
	DetachedSign bool
	AsciiArmor   bool
}

func NewGnuPGSignOptions

func NewGnuPGSignOptions() (g *GnuPGSignOptions)

func (*GnuPGSignOptions) GetAsciiArmor

func (g *GnuPGSignOptions) GetAsciiArmor() (asciiArmor bool, err error)

func (*GnuPGSignOptions) GetDetachedSign

func (g *GnuPGSignOptions) GetDetachedSign() (detachedSign bool, err error)

func (*GnuPGSignOptions) MustGetAsciiArmor

func (g *GnuPGSignOptions) MustGetAsciiArmor() (asciiArmor bool)

func (*GnuPGSignOptions) SetAsciiArmor

func (g *GnuPGSignOptions) SetAsciiArmor(asciiArmor bool) (err error)

func (*GnuPGSignOptions) SetDetachedSign

func (g *GnuPGSignOptions) SetDetachedSign(detachedSign bool) (err error)

Jump to

Keyboard shortcuts

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