mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
Rename httpGetInterface to httpGetter
This commit is contained in:
parent
e46af6e37f
commit
de3060e4eb
@ -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.
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user