1
0
forked from sm/vain
vain/storage.go
Stephen McQuay (smcquay) 9d3ce56e26
Added storer interface
Change-Id: I747bec339bdda26f0f68b24956912467ff67695d
2016-06-24 01:04:33 -07:00

17 lines
424 B
Go

package vain
import "time"
// Storer defines the db interface.
type Storer interface {
AddPackage(p Package) error
Confirm(token string) (string, error)
NSForToken(ns string, tok string) error
Package(path string) (Package, error)
PackageExists(path string) bool
Pkgs() []Package
Register(email string) (string, error)
RemovePackage(path string) error
forgot(email string, window time.Duration) (string, error)
}