github.com/secure-build/gitlab-runner@v12.5.0+incompatible/executors/docker/machine/terminal.go (about) 1 package machine 2 3 import ( 4 "errors" 5 6 "gitlab.com/gitlab-org/gitlab-runner/session/terminal" 7 terminalsession "gitlab.com/gitlab-org/gitlab-runner/session/terminal" 8 ) 9 10 func (e *machineExecutor) Connect() (terminalsession.Conn, error) { 11 if term, ok := e.executor.(terminal.InteractiveTerminal); ok { 12 return term.Connect() 13 } 14 15 return nil, errors.New("executor does not have terminal") 16 }