func newProbeHolder() probeHolder { return probeHolder{ exec: execprobe.New(), http: httprobe.New(), tcp: tcprobe.New(), } }
// NewProber creates a Prober, it takes a command runner and // several container info managers. func New( runner kubecontainer.ContainerCommandRunner, readinessManager *kubecontainer.ReadinessManager, refManager *kubecontainer.RefManager, recorder record.EventRecorder) Prober { return &prober{ exec: execprobe.New(), http: httprobe.New(), tcp: tcprobe.New(), runner: runner, readinessManager: readinessManager, refManager: refManager, recorder: recorder, } }
// NewProber creates a Prober, it takes a command runner and // several container info managers. func newProber( runner dockertools.ContainerCommandRunner, readinessManager *kubecontainer.ReadinessManager, refManager *kubecontainer.RefManager, recorder record.EventRecorder) kubecontainer.Prober { return &prober{ exec: execprobe.New(), http: httprobe.New(), tcp: tcprobe.New(), runner: runner, readinessManager: readinessManager, refManager: refManager, recorder: recorder, } }