bboltcachestorage

package
v0.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 129

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(dbPath string) (*Store, error)
func (s *Store) AddLink(id string, link solver.CacheInfoLink, target string) error

func (*Store) AddResult

func (s *Store) AddResult(id string, res solver.CacheResult) error

func (*Store) Close added in v0.12.3

func (s *Store) Close() error

func (*Store) Exists

func (s *Store) Exists(id string) bool
func (s *Store) HasLink(id string, link solver.CacheInfoLink, target string) bool

func (*Store) Load

func (s *Store) Load(id string, resultID string) (solver.CacheResult, error)

func (*Store) Release

func (s *Store) Release(resultID string) error

func (*Store) Walk

func (s *Store) Walk(fn func(id string) error) error
func (s *Store) WalkBacklinks(id string, fn func(id string, link solver.CacheInfoLink) error) error

func (*Store) WalkIDsByResult

func (s *Store) WalkIDsByResult(resultID string, fn func(string) error) error
func (s *Store) WalkLinks(id string, link solver.CacheInfoLink, fn func(id string) error) error

func (*Store) WalkResults

func (s *Store) WalkResults(id string, fn func(solver.CacheResult) error) error

Jump to

Keyboard shortcuts

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