controller

package
v0.0.0-...-01c1a50 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 Init

func Init(dbPath, crPath string) (*RoperController, error)

Initialize all the things!

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

Jump to

Keyboard shortcuts

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