diff options
author | Michael Muré <michael.mure@consensys.net> | 2019-01-16 21:23:49 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:35:37 +0100 |
commit | 06d9c6872655b85f1a47599add92d49d570e7b2e (patch) | |
tree | eef3f140d726450d66e49b4225a527b1b93a62a5 /identity/bare.go | |
parent | feab9412dffe5772048aad29893c4cb01d566387 (diff) | |
download | git-bug-06d9c6872655b85f1a47599add92d49d570e7b2e.tar.gz |
identity: implement the loading from git
Diffstat (limited to 'identity/bare.go')
-rw-r--r-- | identity/bare.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/identity/bare.go b/identity/bare.go index eec00e19..24f30f9f 100644 --- a/identity/bare.go +++ b/identity/bare.go @@ -9,6 +9,11 @@ import ( "github.com/MichaelMure/git-bug/util/text" ) +// Bare is a very minimal identity, designed to be fully embedded directly along +// other data. +// +// in particular, this identity is designed to be compatible with the handling of +// identities in the early version of git-bug. type Bare struct { name string email string @@ -71,10 +76,12 @@ func (i Bare) AvatarUrl() string { return i.avatarUrl } +// Keys return the last version of the valid keys func (i Bare) Keys() []Key { return []Key{} } +// ValidKeysAtTime return the set of keys valid at a given lamport time func (i Bare) ValidKeysAtTime(time lamport.Time) []Key { return []Key{} } @@ -139,6 +146,8 @@ func (i Bare) Validate() error { return nil } +// 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. func (i Bare) IsProtected() bool { return false } |