testutil

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTransparencyLog = errors.New("transparency log error")

ErrTransparencyLog is returned by TransparencyLogWithErr.Upload.

Functions

This section is empty.

Types

type TestAttestation

type TestAttestation struct {
	CertVal  []byte
	BytesVal []byte
}

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

type TestLogEntry struct {
	IDVal       string
	UUIDVal     string
	LogIndexVal int64
}

TestLogEntry is a basic LogEntry implementation.

func (*TestLogEntry) ID

func (e *TestLogEntry) ID() string

ID implements LogEntry.ID.

func (*TestLogEntry) LogIndex

func (e *TestLogEntry) LogIndex() int64

LogIndex implements LogEntry.LogIndex.

func (*TestLogEntry) UUID

func (e *TestLogEntry) UUID() string

UUID implements LogEntry.UUID.

type TestSigner

type TestSigner struct {
	Att TestAttestation
}

TestSigner is a Signer implementation that returns the contained attestation.

func (TestSigner) Sign

Sign implements Signer.Sign.

type TestTransparencyLog

type TestTransparencyLog struct {
	Entry *TestLogEntry
}

TestTransparencyLog is an implementation of TransparencyLog that returns an ErrTransparencyLog.

func (TestTransparencyLog) Upload

Upload implements TransparencyLog.Upload.

type TransparencyLogWithErr

type TransparencyLogWithErr struct{}

TransparencyLogWithErr is an implementation of TransparencyLog that returns an ErrTransparencyLog.

func (TransparencyLogWithErr) Upload

Upload implements TransparencyLog.Upload.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL