2017-07-01 12:55:26 +00:00
|
|
|
package poll
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/rusenask/cron"
|
2017-07-02 07:29:15 +00:00
|
|
|
"github.com/rusenask/keel/image"
|
2017-07-01 12:55:26 +00:00
|
|
|
"github.com/rusenask/keel/provider"
|
|
|
|
"github.com/rusenask/keel/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Watcher interface {
|
2017-07-02 07:29:15 +00:00
|
|
|
Watch(image string) error
|
|
|
|
Unwatch(image string) error
|
2017-07-01 12:55:26 +00:00
|
|
|
List() ([]types.Repository, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type RepositoryWatcher struct {
|
|
|
|
providers provider.Providers
|
|
|
|
|
|
|
|
cron *cron.Cron
|
|
|
|
}
|