resultstore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Scheme = "hera-result"

Variables

View Source
var (
	ErrInvalidHandle = errors.New("invalid result resource handle")
	ErrNotFound      = errors.New("result resource not found")
	ErrIntegrity     = errors.New("result resource failed integrity check")
)

Functions

This section is empty.

Types

type Handle

type Handle struct {
	URI   string
	Hash  string
	Bytes int64
}

type Options

type Options struct {
	Root      string
	MaxBytes  int64
	Retention time.Duration
	Now       func() time.Time
}

type Store

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

func New

func New(projectID string, options Options) (*Store, error)

func (*Store) Read

func (store *Store) Read(uri string) ([]byte, error)

func (*Store) Root

func (store *Store) Root() string

func (*Store) Spool

func (store *Store) Spool(operationID string, payload []byte) (Handle, error)

Jump to

Keyboard shortcuts

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