document RESTClient.timeout

pull/6/head
Chao Xu 2015-11-04 15:07:53 -08:00
parent f64780d6eb
commit 0512d45986
1 changed files with 2 additions and 0 deletions

View File

@ -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.