aboutsummaryrefslogtreecommitdiffstats
path: root/identity/version.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-01-14 22:01:44 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:18:29 +0100
commit390b13c9ff69f3d42860b5f8109eb134459c40b1 (patch)
treefb2bf13f7395f424e38a6fda61771071eb923948 /identity/version.go
parentae2f942ef907161af0aba5f3511db72cf9801dca (diff)
downloadgit-bug-390b13c9ff69f3d42860b5f8109eb134459c40b1.tar.gz
identity: rework mutation
Diffstat (limited to 'identity/version.go')
-rw-r--r--identity/version.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/identity/version.go b/identity/version.go
index 95530767..b5b8dae3 100644
--- a/identity/version.go
+++ b/identity/version.go
@@ -24,8 +24,8 @@ type Version struct {
unixTime int64
name string
- email string
- login string
+ email string // TODO: remove ? keep and use metadata for bridges ?
+ login string // TODO: remove
avatarURL string
// The set of keys valid at that time, from this version onward, until they get removed
@@ -60,6 +60,14 @@ type VersionJSON struct {
Metadata map[string]string `json:"metadata,omitempty"`
}
+type VersionMutator struct {
+ Name string
+ Email string
+ Login string
+ AvatarUrl string
+ Keys []Key
+}
+
func (v *Version) MarshalJSON() ([]byte, error) {
return json.Marshal(VersionJSON{
FormatVersion: formatVersion,