kubernetes: github.com/erimatnor/kubernetes/pkg/kubelet/prober Index | Files

package prober

import "github.com/erimatnor/kubernetes/pkg/kubelet/prober"

Index

Package Files

prober.go prober_fake.go

type ContainerCommandRunner Uses

type ContainerCommandRunner interface {
    RunInContainer(containerID string, cmd []string) ([]byte, error)
    ExecInContainer(containerID string, cmd []string, in io.Reader, out, err io.WriteCloser, tty bool) error
    PortForward(pod *kubecontainer.Pod, port uint16, stream io.ReadWriteCloser) error
}

type FakeProber Uses

type FakeProber struct {
}

func (*FakeProber) Probe Uses

func (fp *FakeProber) Probe(pod *api.Pod, status api.PodStatus, container api.Container, containerID string, createdAt int64) (probe.Result, error)

type Prober Uses

type Prober interface {
    Probe(pod *api.Pod, status api.PodStatus, container api.Container, containerID string, createdAt int64) (probe.Result, error)
}

Prober checks the healthiness of a container.

func New Uses

func New(
    runner ContainerCommandRunner,
    readinessManager *kubecontainer.ReadinessManager,
    refManager *kubecontainer.RefManager,
    recorder record.EventRecorder) Prober

NewProber creates a Prober, it takes a command runner and several container info managers.

func NewTestProber Uses

func NewTestProber(
    exec execprobe.ExecProber,
    readinessManager *kubecontainer.ReadinessManager,
    refManager *kubecontainer.RefManager,
    recorder record.EventRecorder) Prober

New prober for use in tests.

Package prober imports 14 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.