rekor

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxGetEntriesLimit = 10
)

Variables

View Source
var ErrOverGetEntriesLimit = xerrors.Errorf("over get entries limit")

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Rekor
}

func NewClient

func NewClient(rekorURL string) (*Client, error)

func (*Client) GetEntries

func (c *Client) GetEntries(ctx context.Context, entryIDs []EntryID) ([]Entry, error)

func (*Client) Search

func (c *Client) Search(ctx context.Context, hash string) ([]EntryID, error)

type Entry

type Entry struct {
	Statement []byte
}

type EntryID

type EntryID struct {
	TreeID string
	UUID   string
}

EntryID is a hex-format string. The length of the string is 80 or 64. If the length is 80, it consists of two elements, the TreeID and the UUID. If the length is 64, it consists only of the UUID. cf. https://github.com/sigstore/rekor/blob/4923f60f4ae55ccd4baf28d182e8f55c2d8097d3/pkg/sharding/sharding.go#L25-L36

func NewEntryID

func NewEntryID(entryID string) (EntryID, error)

func (EntryID) String

func (e EntryID) String() string

Jump to

Keyboard shortcuts

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