programsstore

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = pkvstore.ErrNotFound

Functions

This section is empty.

Types

type File

type File struct {
	Path           *apiprogram.Path   `json:"path"`
	FetchedVersion string             `json:"fetched_version"` // != path.version if path.version is empty.
	FetchedAt      time.Time          `json:"fetched_at"`
	Source         []byte             `json:"source"`
	Module         *apiprogram.Module `json:"module"` // compiled
}

type Store

type Store struct{ Store pkvstore.Store }

func (*Store) Get

func (s *Store) Get(
	ctx context.Context,
	pid apiproject.ProjectID,
	paths []*apiprogram.Path,
	noContent bool,
) (fs []*File, err error)

func (*Store) Setup

func (s *Store) Setup(ctx context.Context) error

func (*Store) Teardown

func (s *Store) Teardown(ctx context.Context) error

func (*Store) Update

func (s *Store) Update(
	ctx context.Context,
	pid apiproject.ProjectID,
	fs []*File,
) error

TODO: make the batch atomic.

Jump to

Keyboard shortcuts

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