forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpg_common.go
47 lines (40 loc) · 1.15 KB
/
gpg_common.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Auto-generated by avdl-compiler v1.3.19 (https://github.com/keybase/node-avdl-compiler)
// Input file: avdl/keybase1/gpg_common.avdl
package keybase1
import (
"github.com/keybase/go-framed-msgpack-rpc/rpc"
)
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 {
var ret []PGPIdentity
for _, v := range x {
vCopy := v.DeepCopy()
ret = append(ret, vCopy)
}
return ret
})(o.Identities),
}
}
type GpgCommonInterface interface {
}
func GpgCommonProtocol(i GpgCommonInterface) rpc.Protocol {
return rpc.Protocol{
Name: "keybase.1.gpgCommon",
Methods: map[string]rpc.ServeHandlerDescription{},
}
}
type GpgCommonClient struct {
Cli rpc.GenericClient
}