summaryrefslogtreecommitdiffstats
path: root/pkg/updates
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-18 19:54:44 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-18 19:54:44 +1000
commit13ac1d151acfc3d402747a969610f1f6a321012e (patch)
tree0c1c903475b3f19e0cad7c8126828ff525265778 /pkg/updates
parent6473e5ca3cb727d3f6f4cbe132495532a8bfbc0c (diff)
WIP updater package
Diffstat (limited to 'pkg/updates')
-rw-r--r--pkg/updates/updates.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go
new file mode 100644
index 000000000..77d491119
--- /dev/null
+++ b/pkg/updates/updates.go
@@ -0,0 +1,26 @@
+package updates
+
+// Update checks for updates and does updates
+type Update struct {
+ LastChecked string
+}
+
+// Updater implements the check and update methods
+type Updater interface {
+ Check()
+ Update()
+}
+
+// NewUpdater creates a new updater
+func NewUpdater() *Update {
+
+ update := &Update{
+ LastChecked: "today",
+ }
+ return update
+}
+
+// Check checks if there is an available update
+func (u *Update) Check() {
+
+}