memory

package
v0.0.0-...-5152f1c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package memory implements an in-memory signature store. This is mostly useful for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// Data maps digests to slices of signatures.
	Data map[string][][]byte
}

Store provides access to signatures stored in memory.

func (*Store) Signatures

func (s *Store) Signatures(ctx context.Context, name string, digest string, fn store.Callback) error

Signatures fetches signatures for the provided digest.

func (*Store) String

func (s *Store) String() string

String returns a description of where this store finds signatures.

Jump to

Keyboard shortcuts

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