Documentation
¶
Overview ¶
Package store handlings all the storage in GCSE backend.
Index ¶
- func AppendPackageEvent(site, path, foundWay string, t time.Time, a gpb.HistoryEvent_Action_Enum) error
- func DeletePackage(site, path string) error
- func DeletePackageHistory(site, path string) error
- func DeletePerson(site, id string) error
- func DeletePersonHistory(site, path string) error
- func DeleteRepository(site, user, repo string) error
- func ForEachPackageOfSite(site string, f func(string, *gpb.PackageInfo) error) error
- func ForEachPackageSite(f func(string) error) error
- func ForEachRepositoryOfSite(site string, f func(user, name string, doc *gpb.Repository) error) error
- func ForEachRepositorySite(f func(string) error) error
- func ReadPackage(site, path string) (*gpb.PackageInfo, error)
- func ReadPackageHistory(site, path string) (*gpb.HistoryInfo, error)
- func ReadPackageHistoryOf(box *bh.RefCountBox, site, path string) (*gpb.HistoryInfo, error)
- func ReadPerson(site, id string) (*gpb.PersonInfo, error)
- func ReadPersonHistory(site, path string) (*gpb.HistoryInfo, error)
- func ReadRepository(site, user, repo string) (*gpb.Repository, error)
- func RepoInfoAge(r *gpb.RepoInfo) time.Duration
- func SaveSnapshot(path string) error
- func UpdatePackage(site, path string, f func(*gpb.PackageInfo) error) error
- func UpdatePackageHistory(site, path string, f func(*gpb.HistoryInfo) error) error
- func UpdatePerson(site, id string, f func(*gpb.PersonInfo) error) error
- func UpdatePersonHistory(site, path string, f func(*gpb.HistoryInfo) error) error
- func UpdateRepository(site, user, repo string, f func(doc *gpb.Repository) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPackageEvent ¶
func DeletePackage ¶
func DeletePackageHistory ¶
func DeletePerson ¶
func DeletePersonHistory ¶
func DeleteRepository ¶
func ForEachPackageOfSite ¶
func ForEachPackageSite ¶
Returns all the sites one by one by calling the provided func.
func ForEachRepositoryOfSite ¶
func ForEachRepositorySite ¶
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 SaveSnapshot ¶
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.
Click to show internal directories.
Click to hide internal directories.