Documentation ¶
Index ¶
- type AtomicContainerSig
- func (acs *AtomicContainerSig) CreateAttestationSignature(pgpSigningKey *secrets.PGPSigningSecret) (string, error)
- func (acs *AtomicContainerSig) Equals(acsOther *AtomicContainerSig) bool
- func (acs *AtomicContainerSig) JSON() (string, error)
- func (acs *AtomicContainerSig) VerifyPgpSignature(publicKey string, sig string) error
- func (acs *AtomicContainerSig) VerifySignature(publicKey v1beta1.PublicKey, sig string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicContainerSig ¶
type AtomicContainerSig struct { Critical *critical `json:"critical"` Optional map[string]string `json:"optional,omitempty"` }
AtomicContainerSig represents Red Hat’s Atomic Host attestation signature format defined here https://github.com/aweiteka/image/blob/e5a20d98fe698732df2b142846d007b45873627f/docs/signature.md
func NewAtomicContainerSig ¶
func NewAtomicContainerSig(image string, optional map[string]string) (*AtomicContainerSig, error)
NewAtomicContainerSig creates a AtomicContainerSig from given image and optional map.
func (*AtomicContainerSig) CreateAttestationSignature ¶
func (acs *AtomicContainerSig) CreateAttestationSignature(pgpSigningKey *secrets.PGPSigningSecret) (string, error)
func (*AtomicContainerSig) Equals ¶
func (acs *AtomicContainerSig) Equals(acsOther *AtomicContainerSig) bool
Equals returns if the Identity and Image fields for the host are same.
func (*AtomicContainerSig) JSON ¶
func (acs *AtomicContainerSig) JSON() (string, error)
func (*AtomicContainerSig) VerifyPgpSignature ¶
func (acs *AtomicContainerSig) VerifyPgpSignature(publicKey string, sig string) error
func (*AtomicContainerSig) VerifySignature ¶
func (acs *AtomicContainerSig) VerifySignature(publicKey v1beta1.PublicKey, sig string) error
Click to show internal directories.
Click to hide internal directories.