@@ -93,7 +93,7 @@ func SSHAgent(node *Node, privkey string) (Agent, error) {
9393 return nil , err
9494 }
9595
96- a := sshAgent {
96+ a := & sshAgent {
9797 node : node ,
9898 client : ssh .NewClient (clientConn , channelCh , reqCh ),
9999 conn : conn ,
@@ -107,22 +107,22 @@ func SSHAgent(node *Node, privkey string) (Agent, error) {
107107 return a , nil
108108}
109109
110- func (a sshAgent ) Close () error {
110+ func (a * sshAgent ) Close () error {
111111 err := a .client .Close ()
112112 a .client = nil
113113 return err
114114}
115115
116- func (a sshAgent ) Run (command string ) ([]byte , []byte , error ) {
116+ func (a * sshAgent ) Run (command string ) ([]byte , []byte , error ) {
117117 return a .RunWithTimeout (command , "" , DefaultRunTimeout )
118118}
119119
120- func (a sshAgent ) RunWithInput (command , input string ) error {
120+ func (a * sshAgent ) RunWithInput (command , input string ) error {
121121 _ , _ , err := a .RunWithTimeout (command , input , DefaultRunTimeout )
122122 return err
123123}
124124
125- func (a sshAgent ) RunWithTimeout (command , input string , timeout time.Duration ) ([]byte , []byte , error ) {
125+ func (a * sshAgent ) RunWithTimeout (command , input string , timeout time.Duration ) ([]byte , []byte , error ) {
126126 if timeout > 0 {
127127 err := a .conn .SetDeadline (time .Now ().Add (timeout ))
128128 if err != nil {
0 commit comments