graphstore

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RefsSuffix = ".refs"

Variables

View Source
var Name = "store"

Name is the name of the directory in which all repository build data is stored, relative to the user's .srclib directory. We will eventually remove the .srclib-cache directory and use the graph store exclusively.

Functions

This section is empty.

Types

type ListRefsOptions

type ListRefsOptions struct {
	// Repo is a repository URI. When it is not blank, only fetch
	// references from Repo.
	Repo string `url:",omitempty"`
}

type Store

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

Store represents the user's graph store.

func New

func New(fs rwvfs.FileSystem) *Store

func NewLocal

func NewLocal(srclibPath string) (*Store, error)

NewLocal takes a path for the global graph store directory and returns a Store.

func (*Store) ListFileRefs

func (s *Store) ListFileRefs(repoURI, filename, commitID string) ([]*graph.Ref, error)

SAMER: add doc string

func (*Store) ListRefs

func (s *Store) ListRefs(d graph.DefKey, opt *ListRefsOptions) ([]*graph.Ref, error)

ListRefs lists the references for the definition specified by d. ListRefs is commit agnostic, and d's commit id is ignored.

func (*Store) StoreRefs

func (s *Store) StoreRefs(refs []*graph.Ref) error

StoreRefs stores the refs in the graph store.

Jump to

Keyboard shortcuts

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