api

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("grpc returned 0 leaves with success code")
View Source
var (
	MetricLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name: "rekor_api_latency",
		Help: "Api Latency on calls",
	}, []string{"path", "code"})
)

Functions

func ConfigureAPI

func ConfigureAPI(treeID uint)

func CreateLogEntryHandler

func CreateLogEntryHandler(params entries.CreateLogEntryParams) middleware.Responder

CreateLogEntryHandler creates new entry into log

func GetLogEntryByIndexHandler

func GetLogEntryByIndexHandler(params entries.GetLogEntryByIndexParams) middleware.Responder

GetLogEntryAndProofByIndexHandler returns the entry and inclusion proof for a specified log index

func GetLogEntryByUUIDHandler

func GetLogEntryByUUIDHandler(params entries.GetLogEntryByUUIDParams) middleware.Responder

GetLogEntryByUUIDHandler gets log entry and inclusion proof for specified UUID aka merkle leaf hash

func GetLogInfoHandler

func GetLogInfoHandler(params tlog.GetLogInfoParams) middleware.Responder

GetLogInfoHandler returns the current size of the tree and the STH

func GetLogProofHandler

func GetLogProofHandler(params tlog.GetLogProofParams) middleware.Responder

GetLogProofHandler returns information required to compute a consistency proof between two snapshots of log

func GetPublicKeyHandler

func GetPublicKeyHandler(params pubkey.GetPublicKeyParams) middleware.Responder

func GetRekorVersionHandler added in v0.5.0

func GetRekorVersionHandler(params server.GetRekorVersionParams) middleware.Responder

func SearchIndexHandler

func SearchIndexHandler(params index.SearchIndexParams) middleware.Responder

func SearchIndexNotImplementedHandler

func SearchIndexNotImplementedHandler(params index.SearchIndexParams) middleware.Responder

func SearchLogQueryHandler

func SearchLogQueryHandler(params entries.SearchLogQueryParams) middleware.Responder

SearchLogQueryHandler searches log by index, UUID, or proposed entry and returns array of entries found with inclusion proofs

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(treeID uint) (*API, error)

type Response

type Response struct {
	// contains filtered or unexported fields
}

type TrillianClient

type TrillianClient struct {
	// contains filtered or unexported fields
}

func NewTrillianClient

func NewTrillianClient(ctx context.Context) TrillianClient

func NewTrillianClientFromTreeID added in v0.6.0

func NewTrillianClientFromTreeID(ctx context.Context, tid int64) TrillianClient

Jump to

Keyboard shortcuts

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