aboutsummaryrefslogtreecommitdiffstats
path: root/identity/interface.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-19 00:19:27 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:27 +0100
commit71f9290fdae7551f3d3ada2179ece4084304d734 (patch)
tree3494e4d4491012899ace256f534f5faea1ba2a88 /identity/interface.go
parentffe35fece1b1526949107f154abc21a1a02fc74d (diff)
downloadgit-bug-71f9290fdae7551f3d3ada2179ece4084304d734.tar.gz
identity: store the times properly
Diffstat (limited to 'identity/interface.go')
-rw-r--r--identity/interface.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/identity/interface.go b/identity/interface.go
index 55877c02..9fe4db4f 100644
--- a/identity/interface.go
+++ b/identity/interface.go
@@ -6,13 +6,17 @@ import (
)
type Interface interface {
+ // Id return the Identity identifier
Id() string
+ // Name return the last version of the name
Name() string
+ // Email return the last version of the email
Email() string
+ // Login return the last version of the login
Login() string
+ // AvatarUrl return the last version of the Avatar URL
AvatarUrl() string
-
// Keys return the last version of the valid keys
Keys() []Key
@@ -28,11 +32,11 @@ type Interface interface {
// Write the identity into the Repository. In particular, this ensure that
// the Id is properly set.
- Commit(repo repository.Repo) error
+ Commit(repo repository.ClockedRepo) error
// If needed, write the identity into the Repository. In particular, this
// ensure that the Id is properly set.
- CommitAsNeeded(repo repository.Repo) error
+ CommitAsNeeded(repo repository.ClockedRepo) error
// IsProtected return true if the chain of git commits started to be signed.
// If that's the case, only signed commit with a valid key for this identity can be added.