diff options
Diffstat (limited to 'repository/config.go')
-rw-r--r-- | repository/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/repository/config.go b/repository/config.go index a2bb33fd..70f11081 100644 --- a/repository/config.go +++ b/repository/config.go @@ -1,5 +1,7 @@ package repository +import "time" + // Config represent the common function interacting with the repository config storage type Config interface { // Store writes a single key/value pair in the config of the repo @@ -18,6 +20,11 @@ type Config interface { // there is zero or more than one entry for this key ReadString(key string) (string, error) + // ReadTimestamp read a single timestamp value from the config + // Return ErrNoConfigEntry or ErrMultipleConfigEntry if + // there is zero or more than one entry for this key + ReadTimestamp(key string) (*time.Time, error) + // RemoveAll removes all key/value pair matching the key prefix RemoveAll(keyPrefix string) error } |