1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
package simplesequoia
import (
"errors"
"github.com/containers/image/v5/signature/signer"
)
// simpleSequoiaSigner is a signer.SignerImplementation implementation for simple signing signatures using Sequoia.
type simpleSequoiaSigner struct {
// This is not really used, we just keep the struct fields so that the With… Option functions can be compiled.
sequoiaHome string // "" if using the system's default
keyFingerprint string
passphrase string // "" if not provided.
}
// NewSigner returns a signature.Signer which creates "simple signing" signatures using the user's default
// Sequoia PGP configuration.
//
// The set of options must identify a key to sign with, probably using a WithKeyFingerprint.
//
// The caller must call Close() on the returned Signer.
func NewSigner(opts ...Option) (*signer.Signer, error) {
return nil, errors.New("Sequoia-PGP support is not enabled in this build")
}
|