...

Package storage

import "github.com/sigstore/rekor/pkg/storage"
Overview
Index

Overview ▾

type AttestationStorage

type AttestationStorage interface {
    StoreAttestation(ctx context.Context, key string, attestation []byte) error
    FetchAttestation(ctx context.Context, key string) ([]byte, error)
}

func NewAttestationStorage

func NewAttestationStorage() (AttestationStorage, error)

type Blob

type Blob struct {
    // contains filtered or unexported fields
}

func (*Blob) FetchAttestation

func (b *Blob) FetchAttestation(ctx context.Context, key string) ([]byte, error)

func (*Blob) StoreAttestation

func (b *Blob) StoreAttestation(ctx context.Context, key string, attestation []byte) error