gnupg

package
v0.300.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSignatureValid

func CheckSignatureValid(signatureFile files.File, verbose bool) (err error)

func MustCheckSignatureValid

func MustCheckSignatureValid(signatureFile files.File, verbose bool)

func MustSignFile

func MustSignFile(fileToSign files.File, options *GnuPGSignOptions)

func SignFile

func SignFile(fileToSign files.File, options *GnuPGSignOptions) (err error)

Types

type GnuPGSignOptions

type GnuPGSignOptions struct {
	Verbose      bool
	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) GetVerbose

func (g *GnuPGSignOptions) GetVerbose() (verbose bool, err error)

func (*GnuPGSignOptions) MustGetAsciiArmor

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

func (*GnuPGSignOptions) MustGetDetachedSign

func (g *GnuPGSignOptions) MustGetDetachedSign() (detachedSign bool)

func (*GnuPGSignOptions) MustGetVerbose

func (g *GnuPGSignOptions) MustGetVerbose() (verbose bool)

func (*GnuPGSignOptions) MustSetAsciiArmor

func (g *GnuPGSignOptions) MustSetAsciiArmor(asciiArmor bool)

func (*GnuPGSignOptions) MustSetDetachedSign

func (g *GnuPGSignOptions) MustSetDetachedSign(detachedSign bool)

func (*GnuPGSignOptions) MustSetVerbose

func (g *GnuPGSignOptions) MustSetVerbose(verbose bool)

func (*GnuPGSignOptions) SetAsciiArmor

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

func (*GnuPGSignOptions) SetDetachedSign

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

func (*GnuPGSignOptions) SetVerbose

func (g *GnuPGSignOptions) SetVerbose(verbose bool) (err error)

Jump to

Keyboard shortcuts

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