cache

package
v0.0.0-...-b6209dd Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const CacheUpdateInterval = 10 * time.Minute

Variables

This section is empty.

Functions

func NewCacheLoader

func NewCacheLoader(logger lager.Logger, 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) Lookup

func (l *LocationCache) Lookup(repoName string) (string, bool)

func (*LocationCache) Swap

func (l *LocationCache) Swap(newLocationCache *LocationCache)

type RepositoriesService

type RepositoriesService interface {
	ListByOrg(ctx context.Context, org string, opt *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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