Rename httpGetInterface to httpGetter

This commit is contained in:
Tim Hockin 2014-10-19 20:15:23 -07:00
parent e46af6e37f
commit de3060e4eb
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ func (e *execActionHandler) Run(podFullName, uuid string, container *api.Contain
type httpActionHandler struct { type httpActionHandler struct {
kubelet *Kubelet kubelet *Kubelet
client httpGetInterface client httpGetter
} }
// ResolvePort attempts to turn a IntOrString port reference into a concrete port number. // ResolvePort attempts to turn a IntOrString port reference into a concrete port number.

View File

@ -99,7 +99,7 @@ func NewIntegrationTestKubelet(hn string, rd string, dc dockertools.DockerInterf
} }
} }
type httpGetInterface interface { type httpGetter interface {
Get(url string) (*http.Response, error) Get(url string) (*http.Response, error)
} }
@ -124,7 +124,7 @@ type Kubelet struct {
// Optional, defaults to simple Docker implementation // Optional, defaults to simple Docker implementation
runner dockertools.ContainerCommandRunner runner dockertools.ContainerCommandRunner
// Optional, client for http requests, defaults to empty client // Optional, client for http requests, defaults to empty client
httpClient httpGetInterface httpClient httpGetter
// Optional, maximum pull QPS from the docker registry, 0.0 means unlimited. // Optional, maximum pull QPS from the docker registry, 0.0 means unlimited.
pullQPS float32 pullQPS float32
// Optional, maximum burst QPS from the docker registry, must be positive if QPS is > 0.0 // Optional, maximum burst QPS from the docker registry, must be positive if QPS is > 0.0