You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
936 B
32 lines
936 B
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) |
|
// Input file: ../../../../../../client/protocol/avdl/keybase1/gpg_common.avdl |
|
|
|
package keybase1 |
|
|
|
type GPGKey struct { |
|
Algorithm string `codec:"algorithm" json:"algorithm"` |
|
KeyID string `codec:"keyID" json:"keyID"` |
|
Creation string `codec:"creation" json:"creation"` |
|
Expiration string `codec:"expiration" json:"expiration"` |
|
Identities []PGPIdentity `codec:"identities" json:"identities"` |
|
} |
|
|
|
func (o GPGKey) DeepCopy() GPGKey { |
|
return GPGKey{ |
|
Algorithm: o.Algorithm, |
|
KeyID: o.KeyID, |
|
Creation: o.Creation, |
|
Expiration: o.Expiration, |
|
Identities: (func(x []PGPIdentity) []PGPIdentity { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]PGPIdentity, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.Identities), |
|
} |
|
}
|
|
|