From 0512d45986491f02038f5d40ca129cf736372658 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 4 Nov 2015 15:07:53 -0800 Subject: [PATCH] document RESTClient.timeout --- pkg/client/unversioned/restclient.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/unversioned/restclient.go b/pkg/client/unversioned/restclient.go index db7ab1ee2b5..2992f11c263 100644 --- a/pkg/client/unversioned/restclient.go +++ b/pkg/client/unversioned/restclient.go @@ -46,6 +46,8 @@ type RESTClient struct { // used. Client HTTPClient + // Timeout will be converted to a query parameter and be sent with the request to the API + // server. The API server will fail the request if it does not finish within timeout. Timeout time.Duration // TODO extract this into a wrapper interface via the RESTClient interface in kubectl.