Help us shape the future of Go! Take the 2026 Go Developer Survey

memory

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() reportstore.Client

New constructs an empty in-memory reporting store.

Types

type Store

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

Store is an in-memory reporting persistence implementation.

func (*Store) CreateJob

func (s *Store) CreateJob(_ context.Context, job *reportjob.Record) error

CreateJob persists a new job.

func (*Store) CreateSharedArtifact

func (s *Store) CreateSharedArtifact(_ context.Context, artifact *reportshareartifact.Record) error

CreateSharedArtifact persists a new shared reporting artifact.

func (*Store) GetArtifact

func (s *Store) GetArtifact(_ context.Context, artifactID string) (*reportartifact.Record, error)

GetArtifact loads a stored artifact.

func (*Store) GetJob

func (s *Store) GetJob(_ context.Context, jobID string) (*reportjob.Record, error)

GetJob loads a stored job.

func (*Store) GetSharedArtifact

func (s *Store) GetSharedArtifact(_ context.Context, artifactID string) (*reportshareartifact.Record, error)

GetSharedArtifact loads a stored shared reporting artifact.

func (*Store) ListArtifacts

func (s *Store) ListArtifacts(_ context.Context) ([]*reportartifact.Record, error)

ListArtifacts returns cloned stored artifacts in unspecified order.

func (*Store) ListJobs

func (s *Store) ListJobs(_ context.Context) ([]*reportjob.Record, error)

ListJobs returns cloned stored jobs in unspecified order.

func (*Store) ListSharedArtifacts

func (s *Store) ListSharedArtifacts(_ context.Context) ([]*reportshareartifact.Record, error)

ListSharedArtifacts returns cloned shared reporting artifacts in unspecified order.

func (*Store) PutArtifact

func (s *Store) PutArtifact(_ context.Context, artifact *reportartifact.Record) error

PutArtifact stores a finished artifact.

func (*Store) UpdateJob

func (s *Store) UpdateJob(_ context.Context, job *reportjob.Record) error

UpdateJob replaces a stored job.

func (*Store) UpdateSharedArtifact

func (s *Store) UpdateSharedArtifact(_ context.Context, artifact *reportshareartifact.Record) error

UpdateSharedArtifact replaces a stored shared reporting artifact.

Jump to

Keyboard shortcuts

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