kubernetes/pkg/probe/grpc/grpc.go

type Prober

type grpcProber

// New Prober for execute grpc probe
func New() Prober {}

// Probe executes a grpc call to check the liveness/readiness/startup of container.
// Returns the Result status, command output, and errors if any.
// Any failure is considered as a probe failure to mimic grpc_health_probe tool behavior.
// err is always nil
func (p grpcProber) Probe(host, service string, port int, timeout time.Duration) (probe.Result, string, error) {}