Debian Codegraph @

signature/simplesequoia/signer_stub.go

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