Documentation ¶
Index ¶
- func Connect(aconf *config.AmqpConfig) (*amqp.Connection, error)
- type Info
- func (info *Info) AttrsForLog(prefix string) *zerolog.Event
- func (info *Info) GetMimeType() string
- func (info *Info) Marshal() ([]byte, error)
- func (info *Info) Publish(aconf *config.AmqpConfig) error
- func (info *Info) SetCounterSignature(cs *pkcs9.CounterSignature)
- func (info *Info) SetMimeType(mimeType string)
- func (info *Info) SetPgpCert(entity *openpgp.Entity)
- func (info *Info) SetTimestamp(t time.Time)
- func (info *Info) SetX509Cert(cert *x509.Certificate)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(aconf *config.AmqpConfig) (*amqp.Connection, error)
Connect to the configured AMQP broker
Types ¶
type Info ¶
func (*Info) AttrsForLog ¶ added in v7.5.0
func (*Info) GetMimeType ¶
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) Publish ¶
func (info *Info) Publish(aconf *config.AmqpConfig) error
Publish audit record to a AMQP exchange
func (*Info) SetCounterSignature ¶
func (info *Info) SetCounterSignature(cs *pkcs9.CounterSignature)
Add a PKCS#9 timestamp (counter-signature) to this audit record
func (*Info) SetMimeType ¶
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) SetPgpCert ¶
Set a PGP certificate for this audit record
func (*Info) SetTimestamp ¶
Override the default timestamp for this audit record
func (*Info) SetX509Cert ¶
func (info *Info) SetX509Cert(cert *x509.Certificate)
Set a X509 certificate for this audit record
Click to show internal directories.
Click to hide internal directories.