Documentation ¶
Index ¶
Constants ¶
View Source
const CacheItemTTL = 15 * time.Minute
View Source
const CacheUpdateInterval = 10 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func NewCacheLoader ¶
func NewCacheLoader(logger lager.Logger, githubURL string, orgs []string, locationCache *LocationCache, repoService RepositoriesService, clock clock.Clock) ifrit.Runner
Types ¶
type LocationCache ¶
type LocationCache struct {
// contains filtered or unexported fields
}
func NewLocationCache ¶
func NewLocationCache(logger lager.Logger, clock clock.Clock) *LocationCache
func (*LocationCache) Add ¶
func (l *LocationCache) Add(repoName, location string)
func (*LocationCache) Swap ¶
func (l *LocationCache) Swap(newLocationCache *LocationCache)
type RepositoriesService ¶
type RepositoriesService interface {
ListByOrg(org string, opt *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
}
Click to show internal directories.
Click to hide internal directories.