From b127481364176ac7ecb56c1604e1460251574859 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 27 Jul 2020 00:14:01 +0200 Subject: repository: add access to the system keyring, with fallback on a file --- repository/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'repository/config.go') diff --git a/repository/config.go b/repository/config.go index 4fa5c69b..2133b169 100644 --- a/repository/config.go +++ b/repository/config.go @@ -1,10 +1,16 @@ package repository import ( + "errors" "strconv" "time" ) +var ( + ErrNoConfigEntry = errors.New("no config entry for the given key") + ErrMultipleConfigEntry = errors.New("multiple config entry for the given key") +) + // Config represent the common function interacting with the repository config storage type Config interface { // Store writes a single key/value pair in the config -- cgit