rekor

package
v0.0.0-...-488ceb6 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Rekor
}

func New

func New(url string) (*Client, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, commit string, cert *x509.Certificate) (*models.LogEntryAnon, error)

func (*Client) Verify

func (c *Client) Verify(ctx context.Context, e *models.LogEntryAnon) error

func (*Client) Write

func (c *Client) Write(ctx context.Context, sig, data, cert []byte) (*models.LogEntryAnon, error)

type Verifier

type Verifier interface {
	Get(ctx context.Context, commit string, cert *x509.Certificate) (*models.LogEntryAnon, error)
	Verify(context.Context, *models.LogEntryAnon) error
}

type Writer

type Writer interface {
	Write(ctx context.Context, sig, data, cert []byte) (*models.LogEntryAnon, error)
}

Jump to

Keyboard shortcuts

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