Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTransparencyLog = errors.New("transparency log error")
ErrTransparencyLog is returned by TransparencyLogWithErr.Upload.
Functions ¶
This section is empty.
Types ¶
type TestAttestation ¶
TestAttestation is a basic Attestation implementation.
func (*TestAttestation) Bytes ¶
func (a *TestAttestation) Bytes() []byte
Bytes implements Attestation.Bytes.
func (*TestAttestation) Cert ¶
func (a *TestAttestation) Cert() []byte
Cert implements Attestation.Cert.
type TestLogEntry ¶
TestLogEntry is a basic LogEntry implementation.
func (*TestLogEntry) LogIndex ¶
func (e *TestLogEntry) LogIndex() int64
LogIndex implements LogEntry.LogIndex.
type TestSigner ¶
type TestSigner struct {
Att TestAttestation
}
TestSigner is a Signer implementation that returns the contained attestation.
func (TestSigner) Sign ¶
func (s TestSigner) Sign(context.Context, *intoto.Statement) (signing.Attestation, error)
Sign implements Signer.Sign.
type TestTransparencyLog ¶
type TestTransparencyLog struct {
Entry *TestLogEntry
}
TestTransparencyLog is an implementation of TransparencyLog that returns an ErrTransparencyLog.
func (TestTransparencyLog) Upload ¶
func (l TestTransparencyLog) Upload(context.Context, signing.Attestation) (signing.LogEntry, error)
Upload implements TransparencyLog.Upload.
type TransparencyLogWithErr ¶
type TransparencyLogWithErr struct{}
TransparencyLogWithErr is an implementation of TransparencyLog that returns an ErrTransparencyLog.
func (TransparencyLogWithErr) Upload ¶
func (TransparencyLogWithErr) Upload(context.Context, signing.Attestation) (signing.LogEntry, error)
Upload implements TransparencyLog.Upload.