summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>2017-10-16 10:23:52 +0200
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>2018-04-27 17:14:51 +0200
commit9eec2c2c3f17322be8d9eab30ff174f9173a2120 (patch)
tree0c6657568779caea029424057c645d730b745fe3
parent66ba7c6371ee9590e8c2cb0ade26e434e8a01617 (diff)
downloadboruta-9eec2c2c3f17322be8d9eab30ff174f9173a2120.tar.gz
boruta-9eec2c2c3f17322be8d9eab30ff174f9173a2120.tar.bz2
boruta-9eec2c2c3f17322be8d9eab30ff174f9173a2120.zip
Add fields to AccessInfo struct
Added fields define required connection data for the request owner who want to connect to the Dryad running job. Change-Id: I372abac096d5b1cacc2744cbbbce2d1b0740cf81 Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
-rw-r--r--boruta.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/boruta.go b/boruta.go
index 85ed9ce..a65a699 100644
--- a/boruta.go
+++ b/boruta.go
@@ -23,6 +23,7 @@ package boruta
import (
"crypto/rsa"
+ "net"
"time"
)
@@ -112,6 +113,7 @@ type WorkerUUID string
// JobInfo describes the Job.
type JobInfo struct {
+ // WorkerUUID identifies worker that runs the job.
WorkerUUID WorkerUUID
// Timeout after which this Job will be terminated.
Timeout time.Time
@@ -124,7 +126,14 @@ type Group string
type Groups []Group
// AccessInfo contains necessary information to access the Worker.
-type AccessInfo struct{}
+type AccessInfo struct {
+ // Addr is necessary information to connect to a tunnel to Dryad.
+ Addr net.Addr
+ // Key is private RSA key of the job session.
+ Key rsa.PrivateKey
+ // Username is a login name for the job session.
+ Username string
+}
// WorkerInfo describes the Worker.
type WorkerInfo struct {