store

package
v0.0.0-...-e2ffb22 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: BSD-2-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package store handlings all the storage in GCSE backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPackageEvent

func AppendPackageEvent(site, path, foundWay string, t time.Time, a gpb.HistoryEvent_Action_Enum) error

func DeletePackage

func DeletePackage(site, path string) error

func DeletePackageHistory

func DeletePackageHistory(site, path string) error

func DeletePerson

func DeletePerson(site, id string) error

func DeletePersonHistory

func DeletePersonHistory(site, path string) error

func DeleteRepository

func DeleteRepository(site, user, repo string) error

func ForEachPackageOfSite

func ForEachPackageOfSite(site string, f func(string, *gpb.PackageInfo) error) error

func ForEachPackageSite

func ForEachPackageSite(f func(string) error) error

Returns all the sites one by one by calling the provided func.

func ForEachRepositoryOfSite

func ForEachRepositoryOfSite(site string, f func(user, name string, doc *gpb.Repository) error) error

func ForEachRepositorySite

func ForEachRepositorySite(f func(string) error) error

func ReadPackage

func ReadPackage(site, path string) (*gpb.PackageInfo, error)

Returns an empty (non-nil) PackageInfo if not found.

func ReadPackageHistory

func ReadPackageHistory(site, path string) (*gpb.HistoryInfo, error)

func ReadPackageHistoryOf

func ReadPackageHistoryOf(box *bh.RefCountBox, site, path string) (*gpb.HistoryInfo, error)

func ReadPerson

func ReadPerson(site, id string) (*gpb.PersonInfo, error)

func ReadPersonHistory

func ReadPersonHistory(site, path string) (*gpb.HistoryInfo, error)

func ReadRepository

func ReadRepository(site, user, repo string) (*gpb.Repository, error)

Returns an empty (non-nil) PackageInfo if not found.

func RepoInfoAge

func RepoInfoAge(r *gpb.RepoInfo) time.Duration

func SaveSnapshot

func SaveSnapshot(path string) error

func UpdatePackage

func UpdatePackage(site, path string, f func(*gpb.PackageInfo) error) error

func UpdatePackageHistory

func UpdatePackageHistory(site, path string, f func(*gpb.HistoryInfo) error) error

func UpdatePerson

func UpdatePerson(site, id string, f func(*gpb.PersonInfo) error) error

func UpdatePersonHistory

func UpdatePersonHistory(site, path string, f func(*gpb.HistoryInfo) error) error

func UpdateRepository

func UpdateRepository(site, user, repo string, f func(doc *gpb.Repository) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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