types

package
v0.0.0-...-0e3b0c0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RekorEntry

type RekorEntry struct {
	Data      []byte
	URL       string
	RekorLeaf `json:"-"`
}

RekorEntry is the API request.

func ParseRekorEntry

func ParseRekorEntry(r io.Reader, leaf *RekorLeaf) (*RekorEntry, error)

func (*RekorEntry) Load

func (r *RekorEntry) Load(ctx context.Context) error

type RekorLeaf

type RekorLeaf struct {
	SHA       string
	Signature []byte
	PublicKey []byte
	// contains filtered or unexported fields
}

RekorLeaf is the type we store in the log.

func ParseRekorLeaf

func ParseRekorLeaf(r io.Reader) (*RekorLeaf, error)

func (*RekorLeaf) MarshalJSON

func (r *RekorLeaf) MarshalJSON() ([]byte, error)

MarshalJSON Ensures that the canonicalized versions of public keys & signatures are stored in tLOG

Jump to

Keyboard shortcuts

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