mock

package
v0.0.0-...-dec600e Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntriesClient

type EntriesClient struct {
	Entries []*models.LogEntry
}

EntriesClient is a client that implements entries.ClientService for Rekor To use: var mClient client.Rekor mClient.Entries = &mock.EntriesClient{Entries: <logEntries>}

func (*EntriesClient) CreateLogEntry

func (*EntriesClient) GetLogEntryByUUID

func (*EntriesClient) SearchLogQuery

func (*EntriesClient) SetTransport

func (m *EntriesClient) SetTransport(_ runtime.ClientTransport)

type PubkeyClient

type PubkeyClient struct {
	PEMPubKey string
}

PubkeyClient is a client that implements pubkey.ClientService for Rekor To use: var mClient client.Rekor mClient.Entries = &mock.PubkeyClient{PEMPubKey: <string>}

func (*PubkeyClient) GetPublicKey

func (*PubkeyClient) SetTransport

func (m *PubkeyClient) SetTransport(_ runtime.ClientTransport)

type TlogClient

type TlogClient struct {
	LogInfo *models.LogInfo
}

TlogClient is a client that implements tlog.ClientService for Rekor To use: var mClient client.Rekor mClient.Entries = &mock.TlogClient{LogInfo: <loginfo>}

func (*TlogClient) GetLogInfo

func (*TlogClient) GetLogProof

func (*TlogClient) SetTransport

func (m *TlogClient) SetTransport(_ runtime.ClientTransport)

Jump to

Keyboard shortcuts

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