From cda8114fda8d349bbaeefb42cc33ba715d41cf08 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 12 Jul 2018 15:14:37 +0200 Subject: store user info in the datastore --- repository/repo.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'repository/repo.go') diff --git a/repository/repo.go b/repository/repo.go index 11bb132e..ef7215ee 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -1,6 +1,8 @@ // Package repository contains helper methods for working with a Git repo. package repository +type Hash string + // Repo represents a source code repository. type Repo interface { // GetPath returns the path to the repo. @@ -20,4 +22,7 @@ type Repo interface { // PushRefs push git refs to a remote PushRefs(remote string, refPattern string) error + + // StoreData will store arbitrary data and return the corresponding hash + StoreData([]byte) (Hash, error) } -- cgit