Versions in this module Expand all Collapse all v2 v2.1.1 Nov 26, 2021 v2.0.0 Nov 12, 2021 Changes in this version + var ErrHeaderIntegrity = errors.New("header integrity compromised") + var ErrNoKeyMaterial = errors.New("key material not provided") + type DescriptorIntegrityError struct + ID uint32 + func (e *DescriptorIntegrityError) Error() string + func (e *DescriptorIntegrityError) Is(target error) bool + type ObjectIntegrityError struct + ID uint32 + func (e *ObjectIntegrityError) Error() string + func (e *ObjectIntegrityError) Is(target error) bool + type SignatureNotFoundError struct + ID uint32 + IsGroup bool + func (e *SignatureNotFoundError) Error() string + func (e *SignatureNotFoundError) Is(target error) bool + type SignatureNotValidError struct + Err error + ID uint32 + func (e *SignatureNotValidError) Error() string + func (e *SignatureNotValidError) Is(target error) bool + func (e *SignatureNotValidError) Unwrap() error + type Signer struct + func NewSigner(f *sif.FileImage, opts ...SignerOpt) (*Signer, error) + func (s *Signer) Sign() error + type SignerOpt func(so *signOpts) error + func OptSignGroup(groupID uint32) SignerOpt + func OptSignObjects(ids ...uint32) SignerOpt + func OptSignWithEntity(e *openpgp.Entity) SignerOpt + func OptSignWithTime(fn func() time.Time) SignerOpt + type Verifier struct + func NewVerifier(f *sif.FileImage, opts ...VerifierOpt) (*Verifier, error) + func (v *Verifier) AllSignedBy() ([][]byte, error) + func (v *Verifier) AnySignedBy() ([][]byte, error) + func (v *Verifier) Verify() error + type VerifierOpt func(vo *verifyOpts) error + func OptVerifyCallback(cb VerifyCallback) VerifierOpt + func OptVerifyGroup(groupID uint32) VerifierOpt + func OptVerifyLegacy() VerifierOpt + func OptVerifyLegacyAll() VerifierOpt + func OptVerifyObject(id uint32) VerifierOpt + func OptVerifyWithKeyRing(kr openpgp.KeyRing) VerifierOpt + type VerifyCallback func(r VerifyResult) (ignoreError bool) + type VerifyResult struct + func (r VerifyResult) Entity() *openpgp.Entity + func (r VerifyResult) Error() error + func (r VerifyResult) Signature() sif.Descriptor + func (r VerifyResult) Verified() []sif.Descriptor Other modules containing this package github.com/hpcng/sif