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>
import (
"crypto/rsa"
+ "net"
"time"
)
// 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
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 {