Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation interface {
// Cert returns the certificate used to sign the attestation.
Cert() []byte
// Bytes returns the signed attestation as an encoded DSSE JSON envelope.
Bytes() []byte
}
Attestation is a signed attestation.
type LogEntry ¶
type LogEntry interface {
// ID returns the ID of the transparency log entry.
ID() string
}
LogEntry represents a transparency log entry.
type Signer ¶
type Signer interface {
// Sign signs the given provenance statement and returns the signed
// attestation.
Sign(context.Context, *intoto.Statement) (Attestation, error)
}
Signer is used to sign provenance statements.
type TransparencyLog ¶
type TransparencyLog interface {
// Upload uploads the signed attestation to the transparency log.
Upload(context.Context, Attestation) (LogEntry, error)
}
TransparencyLog allows interaction with a transparency log.
Click to show internal directories.
Click to hide internal directories.