Documentation ¶
Index ¶
- type RepoWatcher
- type RoperController
- func (rc *RoperController) Close() error
- func (rc *RoperController) Discover(name, path string) error
- func (rc *RoperController) DiscoverAllKnown() error
- func (rc *RoperController) GetPackages(repoName string) ([]*model.Package, error)
- func (rc *RoperController) GetRepo(repoName string) (*model.Repo, error)
- func (rc *RoperController) GetRepos() ([]*model.Repo, error)
- func (rc *RoperController) PersistRepo(repo *model.Repo) error
- func (rc *RoperController) RemoveRepo(name string) error
- func (rc *RoperController) StartMonitor(shutdownChan chan struct{}, errChan chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoWatcher ¶
type RepoWatcher struct { *fsnotify.Watcher // contains filtered or unexported fields }
type RoperController ¶
type RoperController struct {
// contains filtered or unexported fields
}
func (*RoperController) Close ¶
func (rc *RoperController) Close() error
Close will do things at the end of the program
func (*RoperController) Discover ¶
func (rc *RoperController) Discover(name, path string) error
Discover will create a repo at a path, and walk it, adding packages that it finds.
func (*RoperController) DiscoverAllKnown ¶
func (rc *RoperController) DiscoverAllKnown() error
func (*RoperController) GetPackages ¶
func (rc *RoperController) GetPackages(repoName string) ([]*model.Package, error)
func (*RoperController) GetRepo ¶
func (rc *RoperController) GetRepo(repoName string) (*model.Repo, error)
func (*RoperController) GetRepos ¶
func (rc *RoperController) GetRepos() ([]*model.Repo, error)
GetRepos returns all the Repos that it can find in the database
func (*RoperController) PersistRepo ¶
func (rc *RoperController) PersistRepo(repo *model.Repo) error
PersistRepo will persist a Repo. This will persist the repo and all the packages. If the repo already exists, it will first be purged, along with all its associated packages.
func (*RoperController) RemoveRepo ¶
func (rc *RoperController) RemoveRepo(name string) error
func (*RoperController) StartMonitor ¶
func (rc *RoperController) StartMonitor(shutdownChan chan struct{}, errChan chan error)
TODO: Spaghetti if/else whomp whomp fix this
Click to show internal directories.
Click to hide internal directories.