@@ -54,7 +54,7 @@ func exec(ctx context.Context, attach, interactive bool, containerName string, a
54
54
}
55
55
56
56
in , out , _ := term .StdStreams ()
57
- sa := stdioAttaccher {resp : & hjResp , in : in , out : out }
57
+ sa := stdioAttacher {resp : & hjResp , in : in , out : out }
58
58
59
59
var fn attachFn
60
60
if interactive {
@@ -89,13 +89,13 @@ func exec(ctx context.Context, attach, interactive bool, containerName string, a
89
89
90
90
type attachFn func (chan <- error )
91
91
92
- type stdioAttaccher struct {
92
+ type stdioAttacher struct {
93
93
resp * types.HijackedResponse
94
94
in io.ReadCloser
95
95
out io.Writer
96
96
}
97
97
98
- func (sa * stdioAttaccher ) attachStdin (done chan <- error ) {
98
+ func (sa * stdioAttacher ) attachStdin (done chan <- error ) {
99
99
go func () {
100
100
do := func () error {
101
101
_ , err := io .Copy (sa .resp .Conn , sa .in )
@@ -114,15 +114,15 @@ func (sa *stdioAttaccher) attachStdin(done chan<- error) {
114
114
}()
115
115
}
116
116
117
- func (sa * stdioAttaccher ) attachStdout (done chan <- error ) {
117
+ func (sa * stdioAttacher ) attachStdout (done chan <- error ) {
118
118
go func () {
119
119
_ , err := io .Copy (sa .out , sa .resp .Reader )
120
120
done <- err
121
121
sa .resp .CloseWrite ()
122
122
}()
123
123
}
124
124
125
- func (sa * stdioAttaccher ) attachStdio (done chan <- error ) {
125
+ func (sa * stdioAttacher ) attachStdio (done chan <- error ) {
126
126
go func () {
127
127
inputDone := make (chan error )
128
128
outputDone := make (chan error )
@@ -144,7 +144,7 @@ func (sa *stdioAttaccher) attachStdio(done chan<- error) {
144
144
}()
145
145
}
146
146
147
- func (sa * stdioAttaccher ) withRawTerminal (fn attachFn ) <- chan error {
147
+ func (sa * stdioAttacher ) withRawTerminal (fn attachFn ) <- chan error {
148
148
fd , isTerminal := term .GetFdInfo (sa .in )
149
149
var err error
150
150
var prevState * term.State
0 commit comments