Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterFunc ¶
type FilterFunc func(*core.Repository) bool
FilterFunc can be used to filter which repositories are synchronized with the local datastore.
func NamespaceFilter ¶
func NamespaceFilter(namespaces []string) FilterFunc
NamespaceFilter is a filter function that returns true if the repository namespace matches a provided namespace in the list.
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
Synchronizer synchronizes user repositories and permissions between a remote source code management system and the local data store.
func New ¶
func New( repoz core.RepositoryService, repos core.RepositoryStore, users core.UserStore, batch core.Batcher, ) *Synchronizer
New returns a new Synchronizer.
func (*Synchronizer) SetFilter ¶
func (s *Synchronizer) SetFilter(fn FilterFunc)
SetFilter sets the filter function.
Click to show internal directories.
Click to hide internal directories.