store

package
v0.0.0-...-b7fcf81 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataStore

type MetadataStore interface {
	// Write records
	Write(rec ...*Record) error
}

MetadataStore is a data storage interface

type Record

type Record struct {
	Key    string
	Value  []byte
	Expiry time.Duration
	// Occurrence is the name of a grafeas occurrence to push to grafeas
	Occurrence string
	// Resource is the resource (e.g. fully qualified image name) of the resource metadata is for
	Resource     string
	Build        *gofeas.V1beta1buildDetails
	DerivedImage *gofeas.V1beta1imageDetails
	Attestation  *gofeas.V1beta1attestationDetails
}

Record represents a data record

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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