Fix inability to send SSH keys over RPC 18/189418/6
authorMichal Sidor <m.sidor@samsung.com>
Mon, 17 Sep 2018 10:05:35 +0000 (12:05 +0200)
committerMichal Sidor <m.sidor@samsung.com>
Wed, 19 Sep 2018 08:41:49 +0000 (10:41 +0200)
commitfe7adb5a339122f5b2fb4b23282ab16b6b2af62c
tree1fcad3bbb562bba3e40f05deff6e4589a6d6ffd8
parent32cb659630b6b746e0443b0e36e6b872248d0f33
Fix inability to send SSH keys over RPC

Gob is used by auto-generated RPC services to (de)serialize structures
used in method calls. Because ssh.PublicKey is an interface, gob is
unable to serialize it, unless its underlying concrete types are
registered using `gob.Register(anythingOfAforementionedType)`.

Change-Id: I0e28e5d58a2b69a6d726bb1ddb73e2f6d8e3f99e
Signed-off-by: Michal Sidor <m.sidor@samsung.com>
rpc/dryad/clientmanager.go
rpc/superviser/reception.go
rpc/types/init.go [new file with mode: 0644]