func Connect(aconf *config.AmqpConfig) (*amqp.Connection, error)
Connect to the configured AMQP broker
type Info struct { Attributes map[string]interface{} StartTime time.Time }
func New(keyName, sigType string, hash crypto.Hash) *Info
Create a new audit record, starting with the given key name, signature type, and digest
func Parse(blob []byte) (*Info, error)
Parse audit data from a JSON blob
func (info *Info) GetMimeType() string
Get the MIME type that the server will use when returning a result to the client. This is not the MIME type of the package being signed.
func (info *Info) Marshal() ([]byte, error)
Marshal the audit record to JSON
func (info *Info) Publish(aconf *config.AmqpConfig) error
Publish audit record to a AMQP exchange
func (info *Info) SetCounterSignature(cs *pkcs9.CounterSignature)
Add a PKCS#9 timestamp (counter-signature) to this audit record
func (info *Info) SetMimeType(mimeType string)
Set the MIME type (Content-Type) that the server will use when returning a result to the client. This is not the MIME type of the package being signed.
func (info *Info) SetPgpCert(entity *openpgp.Entity)
Set a PGP certificate for this audit record
func (info *Info) SetTimestamp(t time.Time)
Override the default timestamp for this audit record
func (info *Info) SetX509Cert(cert *x509.Certificate)
Set a X509 certificate for this audit record