aboutsummaryrefslogtreecommitdiffstats
path: root/identity/interface.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-25 21:35:57 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-25 21:35:57 +0100
commit893de4f5c0e852fac9a73e0c0243bc038af75f17 (patch)
tree6129d0a6e2efbfa81b26534ee5aeb65ba1261bfe /identity/interface.go
parent68acfa519ab6656648d1e976db2a4190bbeb5f44 (diff)
downloadgit-bug-893de4f5c0e852fac9a73e0c0243bc038af75f17.tar.gz
identity: bring back the login to hold that info from bridges (purely informational)
Diffstat (limited to 'identity/interface.go')
-rw-r--r--identity/interface.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/identity/interface.go b/identity/interface.go
index d138362d..bbb94be7 100644
--- a/identity/interface.go
+++ b/identity/interface.go
@@ -12,18 +12,30 @@ type Interface interface {
Id() entity.Id
// Name return the last version of the name
+ // Can be empty.
Name() string
// Email return the last version of the email
+ // Can be empty.
Email() string
+ // Login return the last version of the login
+ // Can be empty.
+ // Warning: this login can be defined when importing from a bridge but should *not* be
+ // used to identify an identity as multiple bridge with different login can map to the same
+ // identity. Use the metadata system for that usage instead.
+ Login() string
+
// AvatarUrl return the last version of the Avatar URL
+ // Can be empty.
AvatarUrl() string
// Keys return the last version of the valid keys
+ // Can be empty.
Keys() []*Key
// ValidKeysAtTime return the set of keys valid at a given lamport time
+ // Can be empty.
ValidKeysAtTime(time lamport.Time) []*Key
// DisplayName return a non-empty string to display, representing the