Skip to content

Commit 15cd0be

Browse files
committed
Fixed typo in stdioAttacher name
Signed-off-by: Lou Marvin Caraig <[email protected]>
1 parent a495ab9 commit 15cd0be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker/docker_exec.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func exec(ctx context.Context, attach, interactive bool, containerName string, a
5454
}
5555

5656
in, out, _ := term.StdStreams()
57-
sa := stdioAttaccher{resp: &hjResp, in: in, out: out}
57+
sa := stdioAttacher{resp: &hjResp, in: in, out: out}
5858

5959
var fn attachFn
6060
if interactive {
@@ -89,13 +89,13 @@ func exec(ctx context.Context, attach, interactive bool, containerName string, a
8989

9090
type attachFn func(chan<- error)
9191

92-
type stdioAttaccher struct {
92+
type stdioAttacher struct {
9393
resp *types.HijackedResponse
9494
in io.ReadCloser
9595
out io.Writer
9696
}
9797

98-
func (sa *stdioAttaccher) attachStdin(done chan<- error) {
98+
func (sa *stdioAttacher) attachStdin(done chan<- error) {
9999
go func() {
100100
do := func() error {
101101
_, err := io.Copy(sa.resp.Conn, sa.in)
@@ -114,15 +114,15 @@ func (sa *stdioAttaccher) attachStdin(done chan<- error) {
114114
}()
115115
}
116116

117-
func (sa *stdioAttaccher) attachStdout(done chan<- error) {
117+
func (sa *stdioAttacher) attachStdout(done chan<- error) {
118118
go func() {
119119
_, err := io.Copy(sa.out, sa.resp.Reader)
120120
done <- err
121121
sa.resp.CloseWrite()
122122
}()
123123
}
124124

125-
func (sa *stdioAttaccher) attachStdio(done chan<- error) {
125+
func (sa *stdioAttacher) attachStdio(done chan<- error) {
126126
go func() {
127127
inputDone := make(chan error)
128128
outputDone := make(chan error)
@@ -144,7 +144,7 @@ func (sa *stdioAttaccher) attachStdio(done chan<- error) {
144144
}()
145145
}
146146

147-
func (sa *stdioAttaccher) withRawTerminal(fn attachFn) <-chan error {
147+
func (sa *stdioAttacher) withRawTerminal(fn attachFn) <-chan error {
148148
fd, isTerminal := term.GetFdInfo(sa.in)
149149
var err error
150150
var prevState *term.State

0 commit comments

Comments
 (0)