fix cross-build

pull/6/head
Chao Xu 2017-04-14 11:39:35 -07:00
parent ce860e187c
commit 59396e6b13
2 changed files with 7 additions and 2 deletions

View File

@ -20,12 +20,13 @@ import (
"time"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/kubernetes/pkg/client/unversioned/remotecommand"
)
// monitorResizeEvents spawns a goroutine that periodically gets the terminal size and tries to send
// it to the resizeEvents channel if the size has changed. The goroutine stops when the stop channel
// is closed.
func monitorResizeEvents(fd uintptr, resizeEvents chan<- Size, stop chan struct{}) {
func monitorResizeEvents(fd uintptr, resizeEvents chan<- remotecommand.TerminalSize, stop chan struct{}) {
go func() {
defer runtime.HandleCrash()

View File

@ -18,7 +18,11 @@ limitations under the License.
package term
func SetSize(fd uintptr, size Size) error {
import (
"k8s.io/kubernetes/pkg/client/unversioned/remotecommand"
)
func SetSize(fd uintptr, size remotecommand.TerminalSize) error {
// NOP
return nil
}